Remember, that render call you have will force rails to render the
template at that moment.
Just try putting the render call as the last statement in your method,
*after* you set your variables.
Keep up to date with Rails on Twitter and This Week in Rails
Policies: Conduct, License, Maintenance, Security, Trademarks