I know that the AWDWR says to believe in magic and to not spend Xmas
with people asking this question, but really how does it work under the
hood?
I was looking at the source code of crummy, and it seems that
instance_variable_set and instance_variable_get may be part of the
answer. Is there some resource on that or do I have to dive into Rails
code?
The method you're interested in is _copy_ivars_from_controller in
ActionView::Base
The method you're interested in is _copy_ivars_from_controller in
ActionView::Base
Fred
Thank you very much Fred. But how can I find about that myself? Is there
somewhere a documentation that could walk me through the Rails' source
code from the entry point (let's say Rack) to the response (returned by
Rack to the client)?
Following it by hand is a bit tedious, I often lose myself in method
calls that call 3 other methods that call 4 other methods.
Is there
somewhere a documentation that could walk me through the Rails' source
code from the entry point (let's say Rack) to the response (returned by
Rack to the client)?
To what end?
Following it by hand is a bit tedious, I often lose myself in method
calls that call 3 other methods that call 4 other methods.