Kristjan Tampere
Kristjan Tampere

Reputation: 45

rails rspec error generating controller

Soo the problem occured after i got rspec installed when i do rails g controller name i get the following error:

/.rbenv/versions/2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in require': cannot load such file -- bundler/setup (LoadError) from /home/ev0lution/.rbenv/versions/2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in require' from /home/ev0lution/RailsP/ticketee/config/boot.rb:3:in <top (required)>' from bin/rails:7:inrequire_relative' from bin/rails:7:in `'

i havent even done anything with it yet only created 1 single test file and i need a controller for it.

Upvotes: 1

Views: 76

Answers (1)

Nickey
Nickey

Reputation: 199

Try run bundle install in your application. seems like some gem is missing. And if command still give similar error try run command with bundle exec.

Upvotes: 1

Related Questions