Hi, I’m currently getting to grips with routing in rails, and it’s going
pretty well. However, I have a small issue with inputting elements into
the url which are more than one word, for example
is how I’d like to format the url that is typed into the url, however,
the problem I am having is how to to convert the query part
(rice-and-cheese) into this (“rice and cheese”)… I’ve tried using gsub
within routes, with no success.
How do you do this in routing? Or does it have to be don by the action
that is handling the query parameter?