Sha256: bf31e0022df04e18957a89c580fc22c943544bff9dc7aa1303fbac5ee37c76c7

Contents?: true

Size: 596 Bytes

Versions: 71

Compression:

Stored size: 596 Bytes

Contents

# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html

<% unless attributes.empty? -%>
one:
<% for attribute in attributes -%>
  <%= attribute.name %>: <%= attribute.default %>
<% end -%>

two:
<% for attribute in attributes -%>
  <%= attribute.name %>: <%= attribute.default %>
<% end -%>
<% else -%>
# This model initially had no columns defined.  If you add columns to the
# model remove the '{}' from the fixture names and add the columns immediately
# below each fixture, per the syntax in the comments below
#
one: {}
# column: value
#
two: {}
#  column: value
<% end -%>

Version data entries

71 entries across 70 versions & 8 rubygems

Version Path
rails-2.3.18 lib/rails_generator/generators/components/model/templates/fixtures.yml
rails-2.3.17 lib/rails_generator/generators/components/model/templates/fixtures.yml
railties-3.0.20 lib/rails/generators/test_unit/model/templates/fixtures.yml
rails-2.3.16 lib/rails_generator/generators/components/model/templates/fixtures.yml
railties-3.0.19 lib/rails/generators/test_unit/model/templates/fixtures.yml
rails-2.3.15 lib/rails_generator/generators/components/model/templates/fixtures.yml
railties-3.0.18 lib/rails/generators/test_unit/model/templates/fixtures.yml
railties-3.0.17 lib/rails/generators/test_unit/model/templates/fixtures.yml
railties-3.0.16 lib/rails/generators/test_unit/model/templates/fixtures.yml
railties-3.0.15 lib/rails/generators/test_unit/model/templates/fixtures.yml
railties-3.0.14 lib/rails/generators/test_unit/model/templates/fixtures.yml
railties-3.0.13 lib/rails/generators/test_unit/model/templates/fixtures.yml
railties-3.0.13.rc1 lib/rails/generators/test_unit/model/templates/fixtures.yml
railties-3.0.12 lib/rails/generators/test_unit/model/templates/fixtures.yml
radiant-1.0.0 ruby-debug/ruby/1.8/gems/rails-2.3.14/lib/rails_generator/generators/components/model/templates/fixtures.yml
railties-3.0.12.rc1 lib/rails/generators/test_unit/model/templates/fixtures.yml
railties-3.0.11 lib/rails/generators/test_unit/model/templates/fixtures.yml
vanity-1.7.1 vendor/ruby/1.9.1/gems/rails-2.3.12/lib/rails_generator/generators/components/model/templates/fixtures.yml
railties-3.0.10 lib/rails/generators/test_unit/model/templates/fixtures.yml
rails-2.3.14 lib/rails_generator/generators/components/model/templates/fixtures.yml