stffn / declarative_authorization

An unmaintained authorization plugin for Rails. Please fork to support current versions of Rails
MIT License
1.24k stars 233 forks source link

Could not find generator 'authorization:install' #206

Open ishouvik opened 9 years ago

ishouvik commented 9 years ago

Hello, I am trying to use Declarative Auth on my Rails 4.2.1 app and while generating the Role model with

$ rails g authorization:install [UserModel=User] [field:type field:type ...] [--create-user --commit --user-belongs-to-role]

I get the following output Could not find generator 'authorization:install'. Maybe you meant ...

zeiv commented 9 years ago

Hey ishouvik,

Check to see if you are using version 1.0.0.pre. The installer is only available in that version (I believe) and only up to 0.5.7 is on rubygems, so you'll have to pull the gem from GitHub in your Gemfile.

Update: Also, see #200.