fix view links to use rails route paths instead of manually hacked urls