All,
In the Recipes for Rails Authentication recipe, there is a variable
named action_name that’s used to represent the current action.
Where does this come from?
Is there a similar variable for the current controller?
Thanks,
Wes
All,
In the Recipes for Rails Authentication recipe, there is a variable
named action_name that’s used to represent the current action.
Where does this come from?
Is there a similar variable for the current controller?
Thanks,
Wes
Wes G. wrote:
In the Recipes for Rails Authentication recipe, there is a variable
named action_name that’s used to represent the current action.Where does this come from?
It’s an attribute of ActionController.
Is there a similar variable for the current controller?
controller_name also an attribute of ActionContoller
–
Ray
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs