travis
travis

Reputation: 11

rails install broken

I just installed ruby 1.9.2 and rails 3.0.9 on my windows dev machine and created an app with

rails new railstest
cd railstest
bundle install
rails server

script/rails:6:in `require': no such file to load -- rails/commands (LoadError)
            from script/rails:6:in `<main>'

i don't understand what caused this error. can anyone help me to understand what is happening? i tried to do the require from irb and was successfull. do i need to reinstall rails? i tried googling for an answer and found this post

error-when-trying-to-start-server-after-upgrading-to-rails-3

gem-installed-but-rails-commands-dont-work

Upvotes: 1

Views: 992

Answers (1)

Anatoly
Anatoly

Reputation: 15530

the only way is reinstall gems and bundle reinitialization

  1. gem uninstall bundler # all versions
  2. gem install bundler
  3. rm Gemfile.lock
  4. bundle install

Upvotes: 2

Related Questions