I have an index action and I would like the user to be able to filter the results on the index page by clicking on "filter links" on the same page.
There is a nice railcasts video that allows you to filter results by typing into a search box.
I would like to filter results based on links the user clicks. How can I do this? Is there a way I can pass params to the controller using link_to?
for example, on an index page listing books, I would like to display the following link
<%= link_to "Fiction", books_path %>
and clicking the link would then only display books in the fiction category.