我想从这个 git 存储库中获取 ribbot 一个开源代码。我已经下载了 rails 及其必要的 gem,以及 mongo db 并安装了“捆绑包”。但是在运行项目时出现以下错误。
如何解决?
/Library/Ruby/Gems/1.8/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:234:in `load': /Users/hansarijanto/Desktop/Impact/ribbot/config/initializers/session_store.rb :4:
语法错误,意外 ':',期待 $end (SyntaxError) ...sion_store :cookie_store, key: '_ribbot_session', :domain =>...
我已经使用语法错误跟踪文件 session_store.rb 目前看起来像这样:
# Be sure to restart your server when you modify this file.
# See environment specific overrides also
Ribbot::Application.config.session_store :cookie_store, key: '_ribbot_session', :domain => :all, :expire_after => 10.years
# Use the database for sessions instead of the cookie-based default,
# which shouldn't be used to store highly confidential information
# (create the session table with "rails generate session_migration")
# Ribbot::Application.config.session_store :active_record_sto