rails generate rspec:install - no such file to load --sprockets/railtie (LoadError)

后端 未结 3 1356
广开言路
广开言路 2021-02-09 12:40

I\'m a RoR-Beginner and I started learning it with the RoR-Tutorial. Actually I\'m at this chapter (http://ruby.railstutorial.org/chapters/static-pages#top) and try to install

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-09 13:18

    Here's what I did:

    the gemfile on the site is apparently slightly wrong, i'm using this:

    source 'http://rubygems.org'
    
    gem "rails", "~> 3.1.0"
    gem 'sqlite3', '1.3.3'
    
    group :development do
    gem 'rspec-rails', '2.6.1'
    end
    
    group :test do
    gem 'rspec-rails', '2.6.1'
    gem 'webrat', '0.7.1'
    end
    

    in your terminal type

    $ bundle update
    $ bundle install
    

    then try again the command

    rails generate rspec:install
    

    Good luck! :)

提交回复
热议问题