I'm wondering what the best practice is for passing referring actions
to a new action. For example if I have an action that I use a million
times in my application I want to be able to call it, and then be
returned to the action that called it... whatever it may be.
Currently I'm using parameters.... When I call the method with a
link_to for example, I do something like this in the view...
<%= link_to 'do this' :action => 'do_this_action', :id =>
@id_of_something, :from_controller => params[:controller], :from_action
=> params[:action] %>
now... I'm 100% sure that's not the way I should do it, because the URL
and then everyone knows the names of my actions... not only is it
messy.... I'm sure there's some security issues there too...
I guess I could pass these things to a session, is that the best way?
Thanks in advance guys!