Create object for that controller then call. class A def a1 * invoke=B.new** invoke.action(args)* end end
class B def action(args) something end end regards, Loganathan On Thu, Mar 8, 2012 at 5:17 PM, Pieter Hugo <li...@ruby-forum.com> wrote: > Hi > > I want one controller action to invoke another action in another > controller, but I don't want the overhead of a redirect_to response > which then generates another request to the correct action and > controller. Any suggestions? > > Pieter > > -- > Posted via http://www.ruby-forum.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 rubyonrails-talk@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- 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 rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.