I have a filter bar on my page. The bar should always be in place, however only when I’m on the detail page I want to show a link <- back to list inside of it. Otherwise the filter bar should be empty. What is the most elegant way of doing this in rails 3 or 3.1?
Thanks
Thomas
To return to previous page you can use
link_to "Back", :backTo show or hide the link you can use the
controller_nameandaction_namemethods with aif/unlessconditional.