I''m using restful_authentication plugin for my webapp. After everything is setup properly, the user signup, login and logout can work without any problem. Now, I don''t know how an external URL, such as http://www.my-external-url.com, can be navigated to the moment a user has successfully login. For example, when I login successfully at http://localhost:3000/login, it is automatically routed to the the Rails Welcome Aboard page. I don''t want that to happen. I want it to go to http://www.my-external-url.com. Does anyone know how to do that? Appreciate if anyone can help. -- 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-/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?hl=en -~----------~----~----~----~------~----~------~--~---
config/routes.rb. There are a ton of good resources out there about routing in Rails in case you don''t know much about how they work. Tom On Mar 4, 10:37 am, Jacob Yong <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> I''m using restful_authentication plugin for my webapp. After everything > is setup properly, the user signup, login and logout can work without > any problem. > Now, I don''t know how an external URL, such ashttp://www.my-external-url.com, can be navigated to the moment a user > has successfully login. > > For example, when I login successfully athttp://localhost:3000/login, > it is automatically routed to the the Rails Welcome Aboard page. I don''t > want that to happen. I want it to go tohttp://www.my-external-url.com. > > Does anyone know how to do that? Appreciate if anyone can help. > -- > Posted viahttp://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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
The resources are all about routing internally. If you know any resources that can help me, please advise. I''m desperate..haha -- 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-/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?hl=en -~----------~----~----~----~------~----~------~--~---
redirect_to ''http://my-external-site.com'' On Mar 4, 9:37 am, Jacob Yong <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> I''m using restful_authentication plugin for my webapp. After everything > is setup properly, the user signup, login and logout can work without > any problem. > Now, I don''t know how an external URL, such ashttp://www.my-external-url.com, can be navigated to the moment a user > has successfully login. > > For example, when I login successfully athttp://localhost:3000/login, > it is automatically routed to the the Rails Welcome Aboard page. I don''t > want that to happen. I want it to go tohttp://www.my-external-url.com. > > Does anyone know how to do that? Appreciate if anyone can help. > -- > Posted viahttp://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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thank you, Scott. It works! Just FYI, it''s actually redirect_to("http://my-external-site.com") Scott wrote:> redirect_to ''http://my-external-site.com'' > > On Mar 4, 9:37�am, Jacob Yong <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>-- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Robby Russell
2009-Mar-05 15:32 UTC
Re: How to navigate to an external URL from a controller
Actually... it''s both ways. The parenthesis aren''t required in ruby when calling methods. Robby On Thu, Mar 5, 2009 at 7:03 AM, Jacob Yong <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Thank you, Scott. It works! Just FYI, it''s actually > redirect_to("http://my-external-site.com") > > Scott wrote: >> redirect_to ''http://my-external-site.com'' >> >> On Mar 4, 9:37�am, Jacob Yong <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > > -- > Posted via http://www.ruby-forum.com/. > > > >-- Robby Russell Chief Evangelist, Partner PLANET ARGON, LLC design // development // hosting w/Ruby on Rails http://planetargon.com/ http://robbyonrails.com/ http://twitter.com/planetargon aim: planetargon +1 503 445 2457 +1 877 55 ARGON [toll free] +1 815 642 4068 [fax] --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---