Rails Forem安装帮助
所以我很新的轨道等,我一直试图安装这个过去几个小时,并试图运行rails s
,或者如果我尝试使用rails g forem:install
安装它时得到以下错误rails g forem:install
/usr/lib64/ruby/gems/1.8/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:245:in`load':/home/forem/config/initializers/session_store.rb:3:syntax错误,意外的':',期待$ end(SyntaxError)... sion_store:cookie_store,key:'_forums_session'^ from /usr/lib64/ruby/gems/1.8/gems/activesupport-3.2.11/lib/active_support/ dependencies.rb:245:在
load' from /usr/lib64/ruby/gems/1.8/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:236:in
load_dependency' load' from /usr/lib64/ruby/gems/1.8/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:236:in
-3.2.11 / lib / active_support / dependencies.rb:245:在load' from /usr/lib64/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/engine.rb:588 from /usr/lib64/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/engine.rb:587:in
中load' from /usr/lib64/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/engine.rb:588 from /usr/lib64/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/engine.rb:587:in
from /usr/lib64/ruby/gems/1.8/gems/railties-3.2.11/ lib / rails / engine.rb:从/usr/lib64/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/initializable.rb:30: instance_exec' from /usr/lib64/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/initializable.rb:30:in
from run instance_exec' from /usr/lib64/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/initializable.rb:30:in
from /usr/lib64/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/initializable .rb:55:in run_initializers' from /usr/lib64/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/initializable.rb:54:in
/ usr / lib64 / ruby / gems /1.8/gems/railties-3.2.11/lib/rails/initializable.rb:54:in run_initializers' from /usr/lib64/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/application.rb:136:in
run_initializers' from /usr/lib64/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/application.rb:136:in
初始化!' 从/usr/lib64/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/railtie/configurable.rb:30:in send' from /usr/lib64/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/railtie/configurable.rb:30:in
来自/usr/lib64/ruby/gems/1.8/gems/activesupport-3.2的/home/forem/config/environment.rb:5 send' from /usr/lib64/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/railtie/configurable.rb:30:in
method_missing' .11 / lib / active_support / dependencies.rb:251: require' from /usr/lib64/ruby/gems/1.8/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in
/usr/lib64/ruby/gems/1.8/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:236:in load_dependency' from /usr/lib64/ruby/gems/1.8/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in
in'require'from /usr/lib64/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/application.rb:103:in require_environment!' from /usr/lib64/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/commands.rb:25 from script/rails:6:in
require_environment!' from /usr/lib64/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/commands.rb:25 from script/rails:6:in
require'from script / rails:6
那么,有什么我在这里失踪或...?
我下载的是这个: https://github.com/radar/forem.heroku.com
: https://github.com/radar/forem.heroku.com
你得到的错误是因为你在不支持它的老版本Ruby中使用Ruby 1.9+哈希语法。 您需要将Ruby升级到1.9.2或1.9.3,或将session_store.rb文件的第二行更改为:
# Be sure to restart your server when you modify this file.
Forums::Application.config.session_store :cookie_store, :key => '_forums_session'
链接地址: http://www.djcxy.com/p/38737.html