【发布时间】:2012-04-16 16:16:57
【问题描述】:
我想从this git repository 获取 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
【问题讨论】:
标签: ruby-on-rails ruby