Tab characters in database.yml breaks mongrel


#1

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: 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:indatabase_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:inprocess’
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:inrun’
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:inrun’
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


#2

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