I’m trying to create a search field using the form_tag helper. The
problem is when I enter a search, the url_for returns an address such as
host.com/search?term=foo. I want to use the format
host.com/search/term. I have it set up in routes to recognize the
format search/:term, but form_tag always uses the format
host.com/search?term=foo. Does anybody know how to do this?