0

我试图用declarative_authorization宝石我的Rails在4个应用程序,但我的Gemfile gem 'declarative_authorization'中插入并运行bundle命令后,我尝试使用以下命令来安装它轨道4和declarative_authorization宝石

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 

但我得到错误Could not find generator authorization:install.

我在做什么错?

谢谢

+0

该项目似乎死了...... https://github.com/stffn/declarative_authorization/issues/192 – 2015-02-10 17:15:58

+0

不是这么死 - 他们合并了一些导轨4支持。 – DGM 2015-04-01 16:35:22

回答

1

让它从GitHub库获得宝石直。我有这个相同的问题,我有一个在他们添加安装程序之前的版本。当我把它从GitHub获取宝石它有一个更高版本和安装工作

#Gemfile 
gem 'declarative_authorization', github: "stffn/declarative_authorization"