bloggs: | { "restful_url": "http://example.com:3000/people/<%= @person.to_param %>", "wallet": { "restful_url": "http://example.com:3000/wallets/<%= @person.wallet.to_param %>", "contents": "an old photo, 5 euros in coins" }, "current_location": "Under a tree", "name": "Joe Bloggs", "pets": [ { "restful_url": "http://example.com:3000/pets/<%= @person.pets.first.to_param %>", "name": "mietze" }], "created_at": "<%= @person.created_at.xmlschema %>" } bloggs_with_oldest_pet: | { "restful_url": "http://example.com:3000/people/<%= @person.to_param %>", "oldest_pet": { "restful_url": "http://example.com:3000/pets/<%= @person.pets.first.to_param %>", "name": "mietze" } } bloggs_with_birthday: | { "restful_url": "http://example.com:3000/people/<%= @person.to_param %>", "birthday": "<%= @person.birthday.to_s(:db) %>" } bloggs_with_pets_ages_hash: | { "restful_url": "http://example.com:3000/people/<%= @person.to_param %>", "pets_ages_hash": { "mietze": 200, "motze": 100 } } bloggs_with_has_pets: | { "restful_url": "http://example.com:3000/people/<%= @person.to_param %>", "has_pets": true } bloggs_with_hasno_pets: | { "restful_url": "http://example.com:3000/people/<%= @person.to_param %>", "has_pets": false } bloggs_da_pet_hater: | { "restful_url": "http://example.com:3000/people/<%= @person.to_param %>", "wallet": { "restful_url": "http://example.com:3000/wallets/<%= @person.wallet.to_param %>", "contents": "an old photo, 5 euros in coins" }, "current_location": "Under a tree", "name": "Joe Bloggs", "pets": [], "created_at": "<%= @person.created_at.xmlschema %>" }