Generally we should only assign instance variables when we intend to use them in the view. This variable is only used within the controller action, so it could just be a local variable.