简体   繁体   中英

“Rails generate controller” error

Does anyone know what this error means? I typed this same command before and it worked perfectly, but then I destroyed the controller and set my secret-key. That was all I did to my app. After that, I get this error everytime I try to create a new controller.

    zoltan@zoltan-VPCYB3V1E:~/website$ rails generate controller StaticPages home --no-test-framework
    /home/zoltan/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- active_support (LoadError)
    from /home/zoltan/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/lib/ruby/vendor_ruby/railties/lib/rails_generator.rb:30:in `<top (required)>'
    from /home/zoltan/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /home/zoltan/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/lib/ruby/vendor_ruby/railties/bin/rails:16:in `<main>'

当您键入“ rvm gemset list”时,您会看到什么?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM