Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails:Could not find generator rolify

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?

like image 935
wachichornia Avatar asked Nov 28 '22 08:11

wachichornia


1 Answers

Had to add the git repository for it to work:

gem "rolify",        :git => "git://github.com/EppO/rolify.git"
like image 107
wachichornia Avatar answered Dec 05 '22 03:12

wachichornia