Forum: Ruby tab characters in database.yml breaks mongrel

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
DjangoFan (Guest)
on 2009-03-31 23:25
(Received via mailing list)
i dont have a bug tracking user account and so ill post this here
quick:

tab characters in database.yml breaks mongrel


production:
  adapter:    sqlserver
  encoding:   utf8
  mode:       ODBC
  database:   Warrants
  dsn:        Warrants
  username:   sa
  password:
  host:  <TAB char>  localhost

'  from C:/WARR_APP/ruby/lib/ruby/1.8/yaml.rb:133:in `load'
  from c:/WARR_APP/vanguard/config/../vendor/rails/railties/lib/
initializer.rb:880:in `database_configuration'
  from c:/WARR_APP/vanguard/config/../vendor/rails/railties/lib/
initializer.rb:416:in `initialize_database'
  from c:/WARR_APP/vanguard/config/../vendor/rails/railties/lib/
initializer.rb:141:in `process'
  from c:/WARR_APP/vanguard/config/../vendor/rails/railties/lib/
initializer.rb:113:in `send'
  from c:/WARR_APP/vanguard/config/../vendor/rails/railties/lib/
initializer.rb:113:in `run'
  from c:/WARR_APP/vanguard/config/environment.rb:9
  from C:/WARR_APP/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in `gem_original_require'
   ... 10 levels...
  from C:/WARR_APP/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/bin/../lib/mongrel/command.rb:212:in `run'
  from C:/WARR_APP/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/bin/mongrel_rails:281
  from C:/WARR_APP/ruby/bin/mongrel_rails:19:in `load'
  from C:/WARR_APP/ruby/bin/mongrel_rails:19
David A. Black (Guest)
on 2009-03-31 23:31
(Received via mailing list)
Hi --

DjangoFan wrote:
> i dont have a bug tracking user account and so ill post this here
> quick:
>
> tab characters in database.yml breaks mongrel

It's not a Mongrel thing. YAML doesn't accept tabs as delimiters:

s = "a: 1\nb:\t2"
YAML.load(s)

ArgumentError: syntax error


David

--
David A. Black / Ruby Power and Light, LLC
Ruby/Rails consulting & training: http://www.rubypal.com
Coming in 2009: The Well-Grounded Rubyist (http://manning.com/black2)

Ruby Training Atlanta! April 1-3, http://www.entp.com/training/atlanta09
This topic is locked and can not be replied to.