Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 422273
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T19:03:54+00:00 2026-05-12T19:03:54+00:00

Anyone have experience with this plugin? I have it installed but I have no

  • 0

Anyone have experience with this plugin? I have it installed but I have no idea how to implement it. How do I define the different roles?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T19:03:55+00:00Added an answer on May 12, 2026 at 7:03 pm

    Their readme is in fact really good.

    I just set it up and these are the steps:

    1. Create a model class called Role
    2. Create a migration for the roles table (see readme http://github.com/be9/acl9)
    3. Add acts_as_authorization_subject to your user model (assuming you have something like that already. Check out the authlogic plugin. There’s an excellent railscast about authlogic (I think #160)
    4. Create a roles_users association table (for the exact migration, again, check out the readme)
    5. That’s it. You done.

    You can now assign roles to your user by current_user.has_role! :admin

    You can check if a user has a certain role by calling e.g. current_user.has_role? :admin

    There are lots of examples in the readme.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Case 1 in question: I have been trying to have a pure 64-bit development
I need to choose a jQuery data grid plugin that plays well with MVC2.
It seems like, for many javascript widgets, the authors have made a conscious effort
I'm using rails 3 and am trying to use the in_place_editing plugin: http://github.com/wanglian/in_place_editing #
I'm using eclipse (and also the groovy-eclipse plugin), and sometimes I can't set breakpoints
I have an admin webapp.one have to login before perfoming any action.Now the /default/index/index
i am working on a categorization service. I want the experience to behave similarly
Preliminary story There is this program which uses the Parallel Port to synchronize with
I'm trying to configure Hudson so that I will be able to automatically deploy
I am trying to get the jQuery validation working on a webpage I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.