diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-10-09 00:08:13 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-10-09 00:08:13 +0000 |
commit | c16a4379caaa9e086aeeb58a9194e511c40921d9 (patch) | |
tree | fe25056edee827899df8f6adb2b94e02a175696c /railties/lib/rails_generator/generators/components/model/templates/fixtures.yml | |
parent | 5728b82c01b05ab55292a463771dcafaba778f11 (diff) | |
download | rails-c16a4379caaa9e086aeeb58a9194e511c40921d9.tar.gz rails-c16a4379caaa9e086aeeb58a9194e511c40921d9.tar.bz2 rails-c16a4379caaa9e086aeeb58a9194e511c40921d9.zip |
Added script/generate resource which works just like scaffold_resource, but creates empty placeholders instead of predefined [DHH] Added generated attribute options to script/generate model, like the one found in scaffold_resource and resource [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5236 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/rails_generator/generators/components/model/templates/fixtures.yml')
-rw-r--r-- | railties/lib/rails_generator/generators/components/model/templates/fixtures.yml | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/railties/lib/rails_generator/generators/components/model/templates/fixtures.yml b/railties/lib/rails_generator/generators/components/model/templates/fixtures.yml index 8794d28ae4..9f5ae29a81 100644 --- a/railties/lib/rails_generator/generators/components/model/templates/fixtures.yml +++ b/railties/lib/rails_generator/generators/components/model/templates/fixtures.yml @@ -1,5 +1,11 @@ # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html -first: +one: id: 1 -another: +<% for attribute in attributes -%> + <%= attribute.name %>: <%= attribute.default %> +<% end -%> +two: id: 2 +<% for attribute in attributes -%> + <%= attribute.name %>: <%= attribute.default %> +<% end -%>
\ No newline at end of file |