How should one have several different controller\' actions set a common instance variable for use in templates but after the action runs.>
Use <%= do_some_calculations(@foo) %> inside your templates. That is the straight way.
<%= do_some_calculations(@foo) %>