> what is equiv of java servlet''s RequestDispatcher.forward in
Rails?
Within the same controller, you can just call that method. But in
general, it''s considered poor style to use internal redirects. It makes
the URLs ambivalent, makes it harder to do stuff like page caching, and
it''s usually entirely unnecessary. Instead, just do redirect_to and be
happy.
David Heinemeier Hansson
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---