Say you have resources post and comments, post has many comments. You are in CommentsController#index because you asked for /posts/8/comments, and you need to generate a link to self with additional query string params (in the real applicaction that''s goes in the header of a listing to provide column ordering). Back in the controller/action days <%= link_to "current", :sort_by => ''date'' %> worked, but now that links to /comments?sort_by=date, so you loose the scope over post 8. How would you accomplish that? You cannot assume anything because the listing may be scoped in diferent ways or not at all, just need to link to self in a clean way. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---