11175
(-- --)
March 4, 2009, 3:37pm
1
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.
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
11175
(-- --)
March 4, 2009, 4:16pm
3
The resources are all about routing internally. If you know any
resources that can help me, please advise. I'm desperate..haha
Scott
(Scott)
March 5, 2009, 5:32am
4
11175
(-- --)
March 5, 2009, 3:03pm
5
Thank you, Scott. It works! Just FYI, it's actually
redirect_to("http://my-external-site.com ")
Scott wrote:
Actually... it's both ways. The parenthesis aren't required in ruby
when calling methods.
Robby