On Fri, Oct 26, 2012 at 7:20 PM, Harisankar P S <mai...@hsps.in> wrote:
> > > On Fri, Oct 26, 2012 at 7:13 PM, Raakesh kumar <kumar3...@gmail.com>wrote: > >> >> >> No in rolify and CanCan, basically i check for this by using >> "user.has_role? :superadmin".. > > > Then just change the if condition accordingly, if user.has_role? > :super_admin > and place that code in the application_controller.rb > > and it should work as you require. > > -- > Harisankar P S > > Ok.. but after defining, browser is showing "Too many redirects error".. Can you please help -- Regards RAKESH KUMAR http://raakeshkumar.wordpress.com _______________________________________________ Ilugd mailing list Ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd