Question

Edit!

I set up the rolify gem and bundle my app:

I added:

gem "rolify" #to add roles like admin and member to the users

to the gemfile and then ran

bundle install

when i try to run

rails g rolify Role User

I get

Could not find generator rolify.

Google didn't bring up anything

Any ideas?

Was it helpful?

Solution

Had to add the git repository for it to work:

gem "rolify",        :git => "git://github.com/EppO/rolify.git"

OTHER TIPS

I'm on Rails 4.0.0.rc1 and Rolify 3.2.0 and I had to run rails g rolify:role Role User instead of rails g rolify Role User.

As explained here you could run it using rails g rolify:role.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top