Fabiana patricia C.
2010-Oct-25 04:57 UTC
Error when starting WEBrick with script/server command
Hi! I am new with Ruby on Rails and very interested with the language. I am trying to follow an example from a book but when I run the "script/server" command I have got the following error message: => Booting WEBrick => Rails 2.3.4 application starting on http://0.0.0.0:3000 C:/Ruby192/lib/ruby/1.9.1/syck.rb:135:in `load'': syntax error on line 20, col -1: `'' (ArgumentError) from C:/Ruby192/lib/ruby/1.9.1/syck.rb:135:in `load'' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rails-2.3.4/lib/initializer.rb:902:in `database_configuration'' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rails-2.3.4/lib/initializer.rb:437:in `initialize_database'' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rails-2.3.4/lib/initializer.rb:141:in `process'' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rails-2.3.4/lib/initializer.rb:113:in `run'' from C:/Users/patriciac/My Documents/Aptana RadRails Workspace/emporium/config/environment.rb:9:in `<top (required)>'' from <internal:lib/rubygems/custom_require>:29:in `require'' from <internal:lib/rubygems/custom_require>:29:in `require'' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:156:in `block in require'' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:521:in `new_constants_in'' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:156:in `require'' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rails-2.3.4/lib/commands/server.rb:84:in `<top (required)>'' from <internal:lib/rubygems/custom_require>:29:in `require'' from <internal:lib/rubygems/custom_require>:29:in `require'' from script/server:3:in `<main>'' Could someone tell me what is wrong here? I have followed all the steps the book mentions but it seems like there is something wrong with the example code because it doesn''t work. I will appreciate a lot the help from yours. I am using Aptana Radrails Studio to code the application. Thanks! Regards, Patricia -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.