diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-09-19 08:47:31 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-09-19 08:47:31 +0000 |
commit | a292cd32226234a63fea0f1de48c5f38d4307fd1 (patch) | |
tree | 422252cb498d6c0380835fc071b7e1a527743cc5 /railties/lib/rails_generator/generators/components/scaffold_resource/templates/fixtures.yml | |
parent | 0da2357527f54662dbf05883253cacda10a5a36d (diff) | |
download | rails-a292cd32226234a63fea0f1de48c5f38d4307fd1.tar.gz rails-a292cd32226234a63fea0f1de48c5f38d4307fd1.tar.bz2 rails-a292cd32226234a63fea0f1de48c5f38d4307fd1.zip |
Implemented ./script/generate scaffold_resource comment body:text created_at:datetime active:boolean price:decimal
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5147 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/rails_generator/generators/components/scaffold_resource/templates/fixtures.yml')
-rw-r--r-- | railties/lib/rails_generator/generators/components/scaffold_resource/templates/fixtures.yml | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/railties/lib/rails_generator/generators/components/scaffold_resource/templates/fixtures.yml b/railties/lib/rails_generator/generators/components/scaffold_resource/templates/fixtures.yml index 8794d28ae4..9f5ae29a81 100644 --- a/railties/lib/rails_generator/generators/components/scaffold_resource/templates/fixtures.yml +++ b/railties/lib/rails_generator/generators/components/scaffold_resource/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 |