Displaying 1 result from an estimated 1 matches for "add_instance_variables_to_assigns".
2006 Feb 25
2
How do templates get access to controller variables?
This is probably more of a Ruby question than a Rails question. I''ve
always wondered exactly how controller instance variables are being made
accessible to the ERb code in the views.
In the Agile Rails book on pages 38, there''s a sidebar at the top that
hints at what''s going on:
"Rails does some Ruby magic so that the instance variables of the
controller