[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

tab characters in database.yml breaks mongrel

DjangoFan

3/31/2009 7:22:00 PM

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
1 Answer

David A. Black

3/31/2009 7:30:00 PM

0

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.r...
Coming in 2009: The Well-Grounded Rubyist (http://manning....)

Ruby Training Atlanta! April 1-3, http://www.entp.com/training...