creating a tempfile that should be used by 2 controllers

Why do you think you need multiple controllers? A controller can have
multiple actions, and actions have views associated with them. What
you've described seems to be two actions. I don't see a need for a
second controller, and I also don't see a need for a temp file. Why
not send a file directly to the user as the response of an action.

- Mark.