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

后端 未结 3 1358
广开言路
广开言路 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:37

    How did you install rspec? Did you do a "gem install" or did you put it in your Gemfile? If it's only in your Gemfile, try putting "bundle exec" in front of your command, like this:

    bundle exec rails g rspec:install
    

    I know I have to use bundle exec when I run the specs, so you may need it for the init script too (I can't remember from when I did it, but I have the exact same ruby/rails versions)

提交回复
热议问题