tags:

views:

174

answers:

2

I'm trying to follow this tutorial here: http://railstutorial.org/chapters/static-pages#top

When I run:

$ rails generate rspec:install

I get:

Could not find generator rspec:install.

What could be the problem? Provided that I'm using Rails 3.0.0.rc

Thanks.

A: 

Try installing it as a gem.

gem install rspec

with rails 3 in your config/environment.rb you maintain gems there with bundle install but in terms of what your doing you can just gem install rspec.

Sam
A: 

Add to your Gemfile:

group :development, :test do
  gem 'rspec-rails',      ">= 2.0.0.beta"
end

and run bundle install

That installed nokogiri and afterwards rails generate rspec:install ran as expected.

Andreas
Thanks everyone.
SWEngineer