private Method

Base.assign_variables_from_controller

Assigns instance variables from the controller to the view.

Source Code

# File action_view/base.rb, line 370
def assign_variables_from_controller
  @assigns.each { |key, value| instance_variable_set("@#{key}", value) }
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.