I would suggest using render instead of redirect. <%= render :partial => "controller2/action2" %>
Checkout this page for more info: http://api.rubyonrails.org/classes/ActionView/Partials.html On Fri, Dec 11, 2009 at 9:15 AM, pankaj <[email protected]> wrote: > Hi, > Lets assume we have an url, /controller1/action1. > In the before filter, under certain conditions, I want to route it > to /controller2/action2. without changing the url at the client side > ie I donot want to use redirect. Please help. > > Regards, > Pankaj > > -- > > 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]<rubyonrails-talk%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > > -- Andrei Erdoss -- 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.

