I don't think you should manually put in the query for the url.

Maybe try this: <a href="http://stackoverflow.com/questions/5433591/rails-redirect-with-params">here</a>

If it doesn't work let me know