instiki/vendor/rails/railties/lib/rails_generator/generators/components/model/templates/fixtures.yml

11 lines
290 B
YAML
Raw Normal View History

2007-01-22 14:43:50 +01:00
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
one:
2007-01-22 14:43:50 +01:00
id: 1
<% for attribute in attributes -%>
<%= attribute.name %>: <%= attribute.default %>
<% end -%>
two:
2007-01-22 14:43:50 +01:00
id: 2
<% for attribute in attributes -%>
<%= attribute.name %>: <%= attribute.default %>
<% end -%>