It would make your code less coupled if you defined route names and then used the corresponding helpers in your views. See http://guides.rubyonrails.org/routing.html#naming-routes