Hi guys,
I'm using named routes in my ruby code. I come from the phpworld where you'll pass information using $_GET
and $_POST
. I was wondering if there's a way to put this into the routes.rb like this:
map.with_options :controller => 'test' do |m|
m.someurl 'someurl?search=someterm', :action => 'index'
end
Currently it's returning can't convert Hash into String
. Thanks!
Justin