create a module and move that method here. then just include into your 
controllers and use

tom

On Aug 26, 2011, at 18:29 , Angelo Cordova wrote:

> Hi people
> 
> I want to know if it is possible to call an action that belongs to a
> controller from another action that belongs to a different controller.
> 
> I have  the "search" action in the controller of Model  A , and I need
> to cal that action from the action "register", but action "register"
> belongs to the controler of Model B. Also I need to pass some
> parameters from action register to execute action search
> 
> Is that possible?
> 
> -- 
> 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.

-- 
===============================================================================
Tomas Meinlschmidt, MS {MCT, MCP+I, MCSE, AER}, NetApp Filer/NetCache

www.meinlschmidt.com  www.maxwellrender.cz  www.lightgems.cz
===============================================================================

-- 
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