2012-08-31 55 views
0

當我在Aptana Studio的內置命令行中發出命令$ rails s時,它出現了這個錯誤,我不知道如何它可以固定在該項目可以在https://github.com/nathandunn97/sample_app每當我嘗試在Aptana Studios中發出'rails s'命令時,它都會顯示一條錯誤消息

=> Booting WEBrick 
=> Rails 3.2.8 application starting in development on http://0.0.0.0:3000 
=> Call with -d to detach 
=> Ctrl-C to shutdown server 
Exiting 
/var/lib/gems/1.8/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in `load': /home/nathan/Documents/Aptana Studio 3 Workspace/sample 
_application/config/initializers/session_store.rb:3: syntax error, unexpected ':', expecting $end (SyntaxError) 
...sion_store :cookie_store, key: '_sample_application_session' 
          ^
     from /var/lib/gems/1.8/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in `load' 
     from /var/lib/gems/1.8/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:236:in `load_dependency' 
     from /var/lib/gems/1.8/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in `load' 
     from /var/lib/gems/1.8/gems/railties-3.2.8/lib/rails/engine.rb:588 
     from /var/lib/gems/1.8/gems/railties-3.2.8/lib/rails/engine.rb:587:in `each' 
     from /var/lib/gems/1.8/gems/railties-3.2.8/lib/rails/engine.rb:587 
     from /var/lib/gems/1.8/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `instance_exec' 
     from /var/lib/gems/1.8/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `run' 
     from /var/lib/gems/1.8/gems/railties-3.2.8/lib/rails/initializable.rb:55:in `run_initializers' 
     from /var/lib/gems/1.8/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `each' 
     from /var/lib/gems/1.8/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `run_initializers' 
     from /var/lib/gems/1.8/gems/railties-3.2.8/lib/rails/application.rb:136:in `initialize!' 
     from /var/lib/gems/1.8/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in `send' 
     from /var/lib/gems/1.8/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in `method_missing' 
     from /home/nathan/Documents/Aptana Studio 3 Workspace/sample_application/config/environment.rb:5 
     from /home/nathan/Documents/Aptana Studio 3 Workspace/sample_application/config.ru:4:in `require' 
     from /home/nathan/Documents/Aptana Studio 3 Workspace/sample_application/config.ru:4 
     from /var/lib/gems/1.8/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval' 
     from /var/lib/gems/1.8/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize' 
     from /home/nathan/Documents/Aptana Studio 3 Workspace/sample_application/config.ru:1:in `new' 
     from /home/nathan/Documents/Aptana Studio 3 Workspace/sample_application/config.ru:1 

回答

0

新的紅寶石哈希語法(key:)發現,僅提供給紅寶石1.9和超越。我們可以從日誌中看到您正在使用1.8版本。

+0

我已經在命令行中完成了'ruby -v',它說我有版本:'ruby 1.9.3p0(2011-10-30 revision 33570)[x86_64-linux]'並且問題仍然存在 –

+0

我也得到同樣的錯誤任何解決方案 –

相關問題