Search code examples
ruby-on-railsgeneratorrolify

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?


Solution

  • Had to add the git repository for it to work:

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