Results 1 to 2 of 2
Thread: Invoking methods....
Feb 25, 2007, 06:53 #1
When you write rails code and for example in instance methods of our controller class we call rail's built in methods (like for example redirect_to etc.), on which object are we calling them? On the same instanced object right? That is the actual controller class instance is it? In essence we call for example one action/method of our controller class on the same instance of this class (actually rails do class instantiations and methods/actions invocations for us) plus others methods in concatenation that reside inside that particular action/method right?
Feb 25, 2007, 12:06 #2
When you do this:
class MyController < ApplicationController def my_action redirect_to :action => 'foo' end end
Rails handles the invocation of controller instances transparently.