On Fri, Oct 26, 2012 at 5:54 PM, Raakesh kumar <kumar3...@gmail.com> wrote:

> Hello,
> I have a Rails App. I had to add an admin section into that and for this i
> am using "Rails Admin". My problem is that i want that when a user logs in
> it gets redirected to normal user's root controller but i want them to be
> directed to /admin. I am very new to Rails and couldn't find anything for
> this. I am using CanCan and Devise for authorization and authentication.
> Any guidance?
>
>
Devise usually redirects to the where the root is pointed in the routes.rb
file. So if by default what you want a person to go two after loging in is
to the admin then you can set the

:root => "controller#action"

-- 
Harisankar P S

http://tech.hsps.in | http://rubykitchen.in
_______________________________________________
Ilugd mailing list
Ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd

Reply via email to