> So how to place true and false (1 and 0, 't' and 'f' etc) or
> Date values or what have you.
>
> Does anyone have suggestions/comments to that end?

For boolean values, you can just use true/false.   The adapters know
how to quote the values correctly.  AR's own unit tests rely on this
behaviour.

I think you should be able to use dates and times similarly:

irb(main):005:0> d = YAML.load("thing: 2001-12-14t21:59:43.10-05:00 ")
=> {"thing"=>Sat Dec 15 15:59:43 NZDT 2001}
irb(main):007:0> d["iso8601"].class
=> Time



--
Cheers

Koz
_______________________________________________
Rails-core mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-core

Reply via email to