How do Rails controllers share instance variables with views?

I'm new to Rails, but I'm pretty experienced with Ruby. Can someone tell me how Rails makes instance variables from a controller viewable. How did the Rails team implement this?

+3
source share
1 answer

It will take a lot of digging through the source of the rails to figure this out for sure, but I believe that this is mainly done using the standard Ruby 'binding' material.

+1
source

Source: https://habr.com/ru/post/1770799/


All Articles