[Rails] Re: acl_system help is needed

Josh Kieschnick
Mon, 17 Jul 2006 04:46:31 -0000

ok, after spending a whole day fighting with this, i think i know what
was wrong.

when i was testing my program, there wasn''t a user logged in.
everything
in the acl_system plugin was being executed before the methods in
"before_filter". i don''t know if this is a bug or if
something i did was
wrong, but the only way it is working for me right now is if the login
controller is the first thing the user sees. if the user isn''t logged
in
before going to a controller with "access_control" the
"current_user"
method returns nil and causes the whole thing to shut down.

there is some terminology i am still not quite familiar with so i might
not be explaining this right, so i will give more info if anyone can
help me out and give me any pointers on using this.