0

I'm trying to use declarative_authorization gem within my Rails 4 app but after inserting it within my gemfile gem 'declarative_authorization' and run the bundle command I try to install it with the command

rails g authorization:install UserModel=Professional nome email telefone logradouro numero bairro cep cidade estado profissao tutorial_completo plan_id:index status_id:index --create-user --user-belongs-to-role

but I get the error Could not find generator authorization:install.

What am I doing wrong?

Thank you

Cristiano Mendonça
  • 1,220
  • 1
  • 10
  • 21

1 Answers1

1

Make it get the gem straight from the github repo. I had this same problem and I had a version that was before they added the installer. When I made it fetch the gem from github it got a later version and the installer worked

#Gemfile
gem 'declarative_authorization', github: "stffn/declarative_authorization"
birk5437
  • 26
  • 2