Anybody got fixtures to work with the YM4R spatial adapter? I’m trying
the syntax used on the docs –
geom: <%= Point.from_x_y(123.5,321.9).to_yaml %> – trying but getting a
yaml error:
Fixture::FormatError: a YAML error occured parsing
/home/christ/backyard/devsite/backyard/config/…/test/fixtures/items.yml.
Please note that YAML must be consistently indented using spaces. Tabs
are not allowed. Please have a look at YAML Ain't Markup Language
The exact error was:
ArgumentError: Bad fixture argument false
/usr/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/fixtures.rb:311:in
`read_fixture_files’
/usr/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/fixtures.rb:279:in
`initialize’
/usr/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/fixtures.rb:251:in
`create_fixtures’
/usr/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/fixtures.rb:250:in
`create_fixtures’
/usr/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:794:in
`silence’
/usr/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/fixtures.rb:248:in
`create_fixtures’
/usr/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/fixtures.rb:565:in
`load_fixtures’
/usr/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/fixtures.rb:512:in
`setup’
Needless to say, there are no tabs in the doc, and it passes without the
geom line. Anyone able to help?