Rails: could not find generator

Edit

I installed the gem and linked my application:

I added:

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

in gemfile and then launched

 bundle install 

when i try to run

 rails g rolify Role User 

I get

 Could not find generator rolify. 

Google didn't call anything

Any ideas?

+4
source share
3 answers

You have to add the git repository for it to work:

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

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 .

+7
source

As explained here , you can run it with rails g rolify:role .

+5
source

All Articles