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 `’
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