Controller Best Practices: Don’t Hide Instance Variables
Thiago Araújo Silva
495

I really appreciate this article! I have often spent too much time hunting down where instance variables are getting assigned in other people’s code. Despite this, I often still assign instance variables in private methods myself using a before filter. I like your example of setting the instance variable directly in the controller method, but still using a private method to keep things fairly DRY.