[Rails] acl_system help is needed

James Ludlow
Sun, 16 Jul 2006 18:17:59 -0000

On 7/16/06, Josh Kieschnick <jjkiesch@gmail.com>
wrote:
> i found Ezra''s acl_system plugin yesterday and i am trying to
figure it
> out.
>
> based on the simple instructions on the site, it does exactly what i
> need but i''m getting some errors when i try to use it:
>
>  NoMethodError in UsersController#index
>
> You have a nil object when you didn''t expect it!
> The error occured while evaluating nil.roles
>
> i am pretty new to rails and still have trouble figuring out where
> things go, so i''m pretty sure that my problem is that i
don''t have the
> current_user method in the right place. or i might have just done
> something else wrong too. i''m not sure, but if anyone can help
that
> would be great.

What is UsersController#index supposed to be doing?  Since acl_system
doesn''t handle authentication, you need to give us some more info on
how you''re handling login/logout of users.

-- James