 |
you should be able to setup fixtures using rails 2's named fixtures, which allow you to refer fixtures in other yml file by name. If you have tags.yml like this:
#tags.yml
agile_book:
name: agile
model_type: Book
rails_book:
name: rails
model_type: Book
ruby_book:
name: ruby
model_type: Book
then your books.yml can use named tag fixtures "agile_book", "rails_book", and "ruby_book"
# books.yml
agile_rails:
name: agile dev with rails
tags:
- agile_book
- rails_book
pickaxe:
name: Programming ruby
tags:
- ruby_book
I haven't tested above code, hopefully it should work.
also this pdf shows some of new features in rails 2. |