我是 Rails 的新手,所以请原谅这个问题,但我一直在到处寻找如何做到这一点。我有一个我克隆的 github 项目,我最终将不得不处理它,但现在需要在浏览器中查看它(将在接下来的几个月中加速运行)。我已经下载了目录并运行了捆绑安装。现在我正在尝试启动 rails 服务器,我得到了这个:
Chriss-MacBook-Pro:chris cgood$ rails server
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.11/lib/rails/railtie/configuration.rb:85:in `method_missing': undefined method `active_record' for #<Rails::Application::Configuration:0x007fc07b649c48> (NoMethodError)
from /Users/cgood/event/chris/config/application.rb:69:in `<class:Application>'
from /Users/cgood/event/chris/config/application.rb:25:in `<module:ChrisGood>'
from /Users/cgood/event/chris/config/application.rb:24:in `<top (required)>'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.11/lib/rails/commands.rb:53:in `require'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.11/lib/rails/commands.rb:53:in `block in <top (required)>'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.11/lib/rails/commands.rb:50:in `tap'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.11/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
任何帮助将非常感激!我一直在拉头发几个小时来处理错误消息后的错误消息。这个让我很难在互联网上找到任何关于它的东西。
我安装了 xcode、rails 安装程序、自制软件和 postgreSQL。谢谢。