ruby-on-rails – 找不到’devise_install’生成器 – Rails 2.3.8,Devise 1.0.8

前端之家收集整理的这篇文章主要介绍了ruby-on-rails – 找不到’devise_install’生成器 – Rails 2.3.8,Devise 1.0.8前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我试图让Devise和新生成的Rails一起运行
2.3.8应用

这是我遇到的错误

devise > script/generate devise_install
Couldn't find 'devise_install' generator

我的配置文件中指定了Devise和Warden gems:

config.gem 'warden',:version => '0.10.7'
config.gem 'devise',:version => '1.0.8'

宝石安装:

devise > rake gems 
 - [I] warden = 0.10.7
    - [R] rack >= 1.0.0
 - [I] devise = 1.0.8
    - [I] warden ~> 0.10.3
       - [R] rack >= 1.0.0
I = Installed
F = Frozen
R = Framework (loaded before rails starts)

看看发电机的列表,我没有看到Devise的任何东西:

devise > script/generate
Installed Generators
  Rubygems: cucumber,facebook,facebook_controller,facebook_publisher,facebook_scaffold,feature,integration_spec,publisher,rspec,rspec_controller,rspec_model,rspec_scaffold,session,xd_receiver
  Builtin: controller,helper,integration_test,mailer,Metal,migration,model,observer,performance_test,plugin,resource,scaffold,session_migration

任何线索?

解决方法

在1.1.5中 rails生成设备:安装.我在某些教程中看过devise_install.

猜你在找的Ruby相关文章