Displaying 1 result from an estimated 1 matches for "by_concert".
2008 Oct 16
3
Rails: View specs and implicit parameters in link_to()
...eat, but I also
think I''ve found a problem with the view specs.
We have a generic navbar partial which is rendered in the index page
of several different controllers. The navbar contains some call to
link_to of the form:
<%= link_to "By Concert", :sort => ''by_concert'' %>
Since I removed the default (catch-all) route, this fails in the view
specs:
> No route matches {:action => "index", :sort => "by_concert"
At runtime, rails seems to figure out the controller as well, and we
get a full URL built fine.
I tried add...