RoleBasedSecurity =================== RoleBasedSecurity is a gem that implements role based security for authlogic. * The gem supports ruby 1.9.x & rails 3.x * The gem allows to create role based security for authlogic * The gem allows ... This gem assumes that * You are using authlogic and application has current_user method * The name of the user model is User * Important ======= Project doesn't supported more. Use https://github.com/be9/acl9 for example Quick Start ======= In your Gemfile: gem "role_based_security", ">= 0.5.1" In your controller: require_role "admin" In your user model: has_many :user_roles, :dependent => :destroy If you wish: -Use config/initiaizers to configure options for this gem -Run ruby script/rails generate role_based_security to gen migration, models and etc. Installation ======= * Type 'gem install --local role_based_security' with root account if you have installed RubyGems. Example ======= Example goes here. Copyright (c) 2011 arufanov, released under the MIT license.