tab characters in database.yml breaks mongrel

D

DjangoFan

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
 
D

David A. Black

Hi --
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top