1

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.

6
  • 1
    Did you install rspec using bundler? If so, try bundle exec rails g controller name. Commented Sep 17, 2015 at 12:38
  • @SvenKoschnicke okeii so i did like you said and i got a lot of missing gems i already installed 10 manually soo idk how long this will go on maybe you have a idea why is it so? Commented Sep 17, 2015 at 12:50
  • @SvenKoschnicke btw i did rails s got the same error Commented Sep 17, 2015 at 12:53
  • Bundler maintains a separate set of gems specifically for your project, so it needs to reinstall gems, even if they are already available as gems on your machine (installed with gem install). But the big benefit is that you don't have problems with conflicting gem requirements of multiple projects. Commented Sep 17, 2015 at 12:56
  • @SvenKoschnicke well i figured i'll create a new project and try again maybe i missed something so as i created a new project i got this error /.rbenv/versions/2.2.3/lib/ruby/2.2.0/rubygems.rb:243:in bin_path': cant find gem bundler (>= 0) (Gem::GemNotFoundException)` think the whole problem is within that maybe i installed rails incorrelctly Commented Sep 17, 2015 at 13:00

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.