本文介绍了找不到生成器 rspec:install.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在此处学习本教程:http://railstutorial.org/chapters/静态页面#top
I'm trying to follow this tutorial here: http://railstutorial.org/chapters/static-pages#top
当我跑步时:
$ rails 生成 rspec:install
我明白了:
找不到生成器 rspec:install.
如果我使用的是 Rails 3.0.0.rc,可能有什么问题?
What could be the problem, provided that I'm using Rails 3.0.0.rc?
谢谢.
推荐答案
添加到您的 Gemfile:
Add to your Gemfile:
group :development, :test do
gem 'rspec-rails', ">= 2.0.0.beta"
end
并运行捆绑安装
安装的 nokogiri
和之后的 rails generate rspec:install
按预期运行.
That installed nokogiri
and afterwards rails generate rspec:install
ran as expected.
这篇关于找不到生成器 rspec:install.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!