I’m doing this one way and I want to make sure that it’s not as messy as
I want to ensure that certain controller methods are only called when
params are passed in from the form on my site. In my application.rb, I
have a method called log_current_action which stores the current
controller and action in a session param and moves this info into
last_controller and last_action so that I know from where the user came
the app. In application.rb, I call this method from before_filer
:log_current_action before every request is processed.
I want to make sure that a user is processing the forms correctly and my
method does work, but it feels a little clumsy. Any advice?