As the OP was speaking of controllers: yes, you can. Check
controller_name and action_name.

But then:

>> to make this a little clearer, I want to do the following:
>> (let's say these two methods are in different controllers)

I see no way to have one controller calling instance methods on
another controller. You could achieve this with components, but as the
Rails docs state: you shouldn't.

/eno

====================================================================
A wee piece of ruby every monday: http://1rad.wordpress.com/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to