2007-01-22 14:43:50 +01:00
|
|
|
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
2007-12-21 08:48:59 +01:00
|
|
|
|
|
|
|
<% unless attributes.empty? -%>
|
2007-02-09 09:04:31 +01:00
|
|
|
one:
|
|
|
|
<% for attribute in attributes -%>
|
|
|
|
<%= attribute.name %>: <%= attribute.default %>
|
|
|
|
<% end -%>
|
2007-12-21 08:48:59 +01:00
|
|
|
|
2007-02-09 09:04:31 +01:00
|
|
|
two:
|
|
|
|
<% for attribute in attributes -%>
|
|
|
|
<%= attribute.name %>: <%= attribute.default %>
|
2007-12-21 08:48:59 +01:00
|
|
|
<% end -%>
|
|
|
|
<% else -%>
|
|
|
|
# one:
|
|
|
|
# column: value
|
|
|
|
#
|
|
|
|
# two:
|
|
|
|
# column: value
|
|
|
|
<% end -%>
|