diff options
author | José Valim <jose.valim@gmail.com> | 2009-08-30 18:49:54 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-08-30 18:49:54 +0200 |
commit | d8d83e7821224a762bb215f65002c4afe737a5a3 (patch) | |
tree | e1629f12ddffd3a30c098b37583fa32024f95d85 /railties/lib/generators/erb/scaffold/templates/_form.html.erb | |
parent | 0efedf2a30a12cdaa261556e3684c630690afe0f (diff) | |
download | rails-d8d83e7821224a762bb215f65002c4afe737a5a3.tar.gz rails-d8d83e7821224a762bb215f65002c4afe737a5a3.tar.bz2 rails-d8d83e7821224a762bb215f65002c4afe737a5a3.zip |
Change div.attribute to div.field and add some _form to tests.
Diffstat (limited to 'railties/lib/generators/erb/scaffold/templates/_form.html.erb')
-rw-r--r-- | railties/lib/generators/erb/scaffold/templates/_form.html.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/generators/erb/scaffold/templates/_form.html.erb b/railties/lib/generators/erb/scaffold/templates/_form.html.erb index 473ebe14fb..d02028d983 100644 --- a/railties/lib/generators/erb/scaffold/templates/_form.html.erb +++ b/railties/lib/generators/erb/scaffold/templates/_form.html.erb @@ -2,12 +2,12 @@ <%%= f.error_messages %> <% for attribute in attributes -%> - <div class="attribute"> + <div class="field"> <%%= f.label :<%= attribute.name %> %><br /> <%%= f.<%= attribute.field_type %> :<%= attribute.name %> %> </div> <% end -%> - <div class="action"> + <div class="actions"> <%% if @<%= singular_name %>.new_record? %> <%%= f.submit 'Create' %> <%% else %> |