Hi, I am using authlogic as a authentication mechanism. I am sending out an email to user if he has any new friend request. I am giving a URL in the email from which he can accept the invitation. My problem is whenever the user is not logged in he is redirected to the login page first. After successful login he should be redirected to "accept_friendship" URL But it doesn''t it goes to the default page after successful login. How should I fix this? Thanks, Tushar Gandhi -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Tushar Gandhi wrote:> Hi, > I am using authlogic as a authentication mechanism. > I am sending out an email to user if he has any new friend request. I am > giving a URL in the email from which he can accept the invitation. > My problem is whenever the user is not logged in he is redirected to the > login page first. After successful login he should be redirected to > "accept_friendship" URL But it doesn''t it goes to the default page after > successful login. > > How should I fix this? > > Thanks, > Tushar GandhiThere should be lots of rails tutorials out there that speak about remembering the original request URL for redirecting after a successful login. http://ethilien.net/archives/better-redirects-in-rails/ is one such resource. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.