我正在尝试运行这个应用程序,它的最后一次提交大约是一年前。在花了很长时间尝试安装所有 gem 和 gem 依赖项(包括注释掉metric-fu
gem)之后,我能够得到绿灯“捆绑已完成”消息。但是,在运行服务器时,我收到以下错误日志:
Rails 3.2.9 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /Users/zallanx/rails_projects/smartr/config/environment.rb:5)
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /Users/zallanx/rails_projects/smartr/config/environment.rb:5)
Exiting
/Users/zallanx/rails_projects/smartr/config/environments/development.rb:26:in `block in <top (required)>': uninitialized constant Sass::Plugin (NameError)
from /Users/zallanx/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/railties-3.2.9/lib/rails/railtie/configurable.rb:24:in `class_eval'
from /Users/zallanx/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/railties-3.2.9/lib/rails/railtie/configurable.rb:24:in `configure'
from /Users/zallanx/rails_projects/smartr/config/environments/development.rb:1:in `<top (required)>'
from /Users/zallanx/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/railties-3.2.9/lib/rails/engine.rb:571:in `block in <class:Engine>'
from /Users/zallanx/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/railties-3.2.9/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/zallanx/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/railties-3.2.9/lib/rails/initializable.rb:30:in `run'
from /Users/zallanx/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/railties-3.2.9/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/zallanx/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/railties-3.2.9/lib/rails/initializable.rb:54:in `each'
from /Users/zallanx/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/railties-3.2.9/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/zallanx/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/railties-3.2.9/lib/rails/application.rb:136:in `initialize!'
from /Users/zallanx/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/railties-3.2.9/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /Users/zallanx/rails_projects/smartr/config/environment.rb:5:in `<top (required)>'
from /Users/zallanx/rails_projects/smartr/config.ru:2:in `block in <main>'
from /Users/zallanx/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
from /Users/zallanx/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
from /Users/zallanx/rails_projects/smartr/config.ru:1:in `new'
from /Users/zallanx/rails_projects/smartr/config.ru:1:in `<main>'
from /Users/zallanx/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/rack-1.4.1/lib/rack/builder.rb:40:in `eval'
from /Users/zallanx/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/rack-1.4.1/lib/rack/builder.rb:40:in `parse_file'
from /Users/zallanx/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/rack-1.4.1/lib/rack/server.rb:200:in `app'
from /Users/zallanx/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/railties-3.2.9/lib/rails/commands/server.rb:46:in `app'
from /Users/zallanx/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/rack-1.4.1/lib/rack/server.rb:301:in `wrapped_app'
from /Users/zallanx/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/rack-1.4.1/lib/rack/server.rb:252:in `start'
from /Users/zallanx/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/railties-3.2.9/lib/rails/commands/server.rb:70:in `start'
from /Users/zallanx/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/railties-3.2.9/lib/rails/commands.rb:55:in `block in <top (required)>'
from /Users/zallanx/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/railties-3.2.9/lib/rails/commands.rb:50:in `tap'
from /Users/zallanx/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/railties-3.2.9/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:9:in `require'
from script/rails:9:in `<main>'
旧的 Rails 2.3 插件会让我失望吗?这是我在 Hartl 的 Rails 教程之后的第一个“真实世界”项目,所以很遗憾我没有很多处理此类错误的经验。名为 smartr 的应用程序 Gemfile 已链接。谢谢!!