ruby - Rails Forem installation assistance -
so i'm quite new rails , such , i've been trying install past few hours , have been getting next error when trying run rails s
, or if seek 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 error, unexpected ':', expecting $end (syntaxerror) ...sion_store :cookie_store, key: '_forums_session' ^ /usr/lib64/ruby/gems/1.8/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:245:in
load' /usr/lib64/ruby/gems/1.8/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:236:in
load_dependency' /usr/lib64/ruby/gems/1.8/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:245:in load' /usr/lib64/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/engine.rb:588 /usr/lib64/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/engine.rb:587:in
each' /usr/lib64/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/engine.rb:587 /usr/lib64/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/initializable.rb:30:in instance_exec' /usr/lib64/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/initializable.rb:30:in
run' /usr/lib64/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/initializable.rb:55:in run_initializers' /usr/lib64/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/initializable.rb:54:in
each' /usr/lib64/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/initializable.rb:54:in run_initializers' /usr/lib64/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/application.rb:136:in
initialize!' /usr/lib64/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/railtie/configurable.rb:30:in send' /usr/lib64/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/railtie/configurable.rb:30:in
method_missing' /home/forem/config/environment.rb:5 /usr/lib64/ruby/gems/1.8/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in require' /usr/lib64/ruby/gems/1.8/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in
require' /usr/lib64/ruby/gems/1.8/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:236:in load_dependency' /usr/lib64/ruby/gems/1.8/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in
require' /usr/lib64/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/application.rb:103:in require_environment!' /usr/lib64/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/commands.rb:25 script/rails:6:in
require' script/rails:6
so there i'm missing here or...?
the 1 downloaded one: https://github.com/radar/forem.heroku.com
the error you're getting due fact you're using ruby 1.9+ hash syntax in older version of ruby not back upwards it. need either upgrade ruby 1.9.2 or 1.9.3, or alter sec line of session_store.rb file be:
# sure restart server when modify file. forums::application.config.session_store :cookie_store, :key => '_forums_session'
ruby-on-rails ruby gem forem
No comments:
Post a Comment