How do i use link_to in order to link to an index controller but listing only those objects with a specific attribute?
How do i use link_to in order to link to an index controller but listing only those objects with a specific attribu开发者_如何学Pythonte?
link_to 'Widgets', widgets_path, :some_attr => 'meep'
Then, in WidgetsController#index, find_by_some_attr(params['some_attr']).
Of course, if you ask a more specific question you might get a more specific answer.
精彩评论