On Fri, Oct 26, 2012 at 6:15 PM, Harisankar P S <[email protected]> wrote:
> > > On Fri, Oct 26, 2012 at 5:54 PM, Raakesh kumar <[email protected]>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 > > Ok.. so can i generate RailsAdmin controller so point to that? If yes then how. Basically what i want is, when a normal user logs in, it redirect them to different "controller#action" and when superuser logs in, it should redirect them to /admin page. But currently it is redirecting both of them to the same page.. -- Regards RAKESH KUMAR http://raakeshkumar.wordpress.com _______________________________________________ Ilugd mailing list [email protected] http://frodo.hserus.net/mailman/listinfo/ilugd
