Declarative authorization funny problem

Hi! I’m having this problem:
my declarative authorization gem doesn’t allow the ADMIN even to see the
index of any page of my application ^^
i’m explaining better:
i have, in my user table, a boolean column named “admin”…in my user.rb
i wrote:
def role_symbol
[:admin] if admin?
end
and in my authorization_rules i have:
role :admin do
has_permission_on [:artists, :albums, :events, :neews],
:to => [:index, :show, :new, :create, :edit, :update, :destroy]
end

the problem is that when i login as an admin user(which has admin =
true) i can’t reach any model which has “filter_resource_access” in its
controller, i see the “You are not allowed to access this action.”
page…why?
when i’m not logged in(i’m a guest) it works as i want, i can see
anything but i can’t edit, create or destroy things…and that’s ok
Thanks a lot!

Saw that simply doesn’t recognise the role of :admin…

Permission denied: User object doesn’t respond to roles (#<User id: 8,
username: “a-mj”, email: “[email protected]”, crypted_password:
“200c1e87dca7e8641f029e09c46fda29a64756dec73315adcf6…”, password_salt:
“n9TfqFhxfHy0diTrOoiq”, persistence_token:
“3b0cd3eb4005fe9d29e57066a20ebdc16d726c1af7bd68aeaef…”, login_count:
20, created_at: “2009-11-12 17:09:59”, updated_at: “2009-11-19
17:38:14”, admin: true>)

So how can i tell him that the admin role is simply an user who has the
admin value = true ?
Thank you

up!!!
i need help, please!