Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Authorization for Rails + GUI. Semantic, Flexible, Lightweight

NotificationsYou must be signed in to change notification settings

the-teacher/the_role

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Authorization gem for Ruby on RailswithManagement Panel

TheRole. Authorization gem for Ruby on Rails with Administrative interface

Semantic. Flexible. Lightweight

TheRole:Gem VersionAPI:Gem VersionGUI:Gem VersionCI:Build Status ruby-toolbox

Strongly recommendedto upgrade from TheRole2 to TheRole3. Please, do it ASAP.


INTRO

TheRole is an authorization library for Ruby on Rails which restricts what resources a given user is allowed to access. All permissions are defined in with2-level-hash, andstored in the database as a JSON string.

TheRole. Authorization gem for Ruby on Rails with Administrative interface

Using hashes, makes role system extremely easy to configure and use

  • Any Role is a two-level hash, consisting of thesections and nestedrules
  • ASection may be associated with acontroller name
  • ARule may be associated with anaction name
  • A Section can have many rules
  • A Rule can betrue orfalse
  • Sections and nestedRules provide anACL (Access Control List)

Management Panel

http://localhost:3000/admin/roles
TheRole GUI

Import/Export operations provided via TheRole Management Panel. If you have 2 Rails apps, based on TheRole - you can move roles between them via export/import abilities of TheRole Management Panel.It can be usefull for Rails apps based on one engine.

TheRole. Authorization gem for Ruby on Rails with Administrative interface

Limitations by Design

TheRole uses few conventions over configuration.It gives simplicity of code, but also some limitations.You have to know about them before using of TheRole:Limitations list


TheRole. Installation
TheRole API
Integration with Rails controllers
Integration with Rails views
Using with Strong Parameters
TheRole GUI. Installation

FAQ


We need your feedback!

If you have to say something about TheRole, or if you need help, there are few ways to contact us:

  1. SKYPE:ilya.killich
  2. Email:zykin-ilya@ya.ru
  3. TWITTER:@iam_teacher
  4. Hash tag:#the_role
  5. Google group:about the_role

Test matrix

  • RAILS: 3.2.21, 4.0, 4.1, 4.2
  • RUBY: 1.9.3, 2.0, 2.1, 2.2
  • DB: sqlite, mysql, postgresql

totally: 48 environments


Supported locales:the_role_api |the_role_management_panel(please, help us with them)


MIT License

MIT LicenseCopyright (c) 2012-2015Ilya N.Zykin

Maintainers

@the-teacher,@sedx,@seuros

Contributors

@igmarin@doabit@linjunpop@egb3@klacointe@niltonvasques

Thanks for contributors

About

Authorization for Rails + GUI. Semantic, Flexible, Lightweight

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp