passing params

I'm confused. Are you trying to write a test? The only inputs to a
controller action are the params, the session, and the database. No
variables of any kind, global or not, are retained between controller
actions, so why would you want to set one?