Skip to content
kristianmandrup edited this page Dec 24, 2010 · 1 revision

role=

@guest_user.role = :admin

roles=

@guest_user.roles = :admin, :guest

remove_role

@admin_user.remove_role :admin

remove_roles

@admin_user.remove_roles :admin, :guest

add_role

@admin_user.add_role :editor

add_roles

@admin_user.add_roles :editor, :guest

exchange_role

@guest_user.exchange_role :guest, :with => :admin

exchange_roles

@guest_user.exchange_roles :guest, :editor :with => :admin