On Fri, Oct 26, 2012 at 7:20 PM, Harisankar P S <[email protected]> wrote:

>
>
> On Fri, Oct 26, 2012 at 7:13 PM, Raakesh kumar <[email protected]>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
[email protected]
http://frodo.hserus.net/mailman/listinfo/ilugd

Reply via email to