Hi, Im reading an old tutorial about instance variables.
However i wasnt able to call de instance variable from the CONTROLLER to the VIEW.
The code is:
Hi, Im reading an old tutorial about instance variables.
However i wasnt able to call de instance variable from the CONTROLLER to the VIEW.
The code is:
You can see Controller instance variables in views. The question is, is that method #movies in your controller actually being called?
In other words, @text is not assigned the string 'movie title' unless the movies method inside the MoviesController class is executed. So, what you need to ponder is: how do you make that method execute?