Rails 不再工作了...我想我搞砸了

Rails not working anymore... I think I messed up

我想我搞砸了,现在我被这条错误消息困住了:( 我该如何离开这里?

pedal@RN-145-97-138-125:~$ rails -v
/Users/pedal/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/dependency.rb:315:in
`to_specs': Could not find 'actionpack' (= 4.2.1) among 62 total
gem(s) (Gem::LoadError) Checked in
'GEM_PATH=/Users/pedal/.rvm/gems/ruby-2.2.1:/Users/pedal/.rvm/gems/ruby-2.2.1@global',
execute `gem env` for more information  from
/Users/pedal/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/specification.rb:1311:in
`block in activate_dependencies'    from
/Users/pedal/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/specification.rb:1300:in
`each'  from
/Users/pedal/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/specification.rb:1300:in
`activate_dependencies'     from
/Users/pedal/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/specification.rb:1282:in
`activate'  from
/Users/pedal/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_gem.rb:67:in
`block in gem'  from
/Users/pedal/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_gem.rb:66:in
`synchronize'   from
/Users/pedal/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_gem.rb:66:in
`gem'   from /Users/pedal/.rvm/rubies/ruby-2.2.1/bin/rails:22:in
`<main>'    from
/Users/pedal/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in
`eval'  from
/Users/pedal/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in
`<main>'§§§§

尝试

gem pristine --all

然后

bundle install

在项目文件夹的终端

您好像漏掉了 actionpack gem。尝试(重新)安装 gem install actionpack.