Guys,
I have a number of actions that need to redirect to the user (as opposed
to render) to an action so that a refresh won’t report the data.
However, these actions also need to pass a hash to the targeted actions
in the redirect.
Trying to do this with redirect_to paramters converts the Hash to a
String, which won’t work for me. For example:
redirect_to(:action=>‘do_something’, :results=>{“Command”=>“x”,
“Result”=>“y”)
The redirect converts :results to a String, rather than a Hash. I
suppose it’s something to do with the way the data is being passed along
the redirect via url.
Anyway, what’s the idiomatic way of handling this? Should I store the
Hash in the session?
Thanks!
John