diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-14 02:02:07 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-14 02:02:07 +0100 |
commit | 9038a4af354fc6edc2d112c273864ada1c44b05b (patch) | |
tree | 2c731893757aaeccd77e3b914890260f72af63fd /railties/lib/rails/generators/erb/scaffold | |
parent | 363545aa20014c56f6da223acc4a46de5c873143 (diff) | |
download | rails-9038a4af354fc6edc2d112c273864ada1c44b05b.tar.gz rails-9038a4af354fc6edc2d112c273864ada1c44b05b.tar.bz2 rails-9038a4af354fc6edc2d112c273864ada1c44b05b.zip |
Add documentation to f.submit and make scaffold generators use the new shortcut.
Diffstat (limited to 'railties/lib/rails/generators/erb/scaffold')
-rw-r--r-- | railties/lib/rails/generators/erb/scaffold/templates/_form.html.erb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/railties/lib/rails/generators/erb/scaffold/templates/_form.html.erb b/railties/lib/rails/generators/erb/scaffold/templates/_form.html.erb index d02028d983..9c19a09616 100644 --- a/railties/lib/rails/generators/erb/scaffold/templates/_form.html.erb +++ b/railties/lib/rails/generators/erb/scaffold/templates/_form.html.erb @@ -8,10 +8,6 @@ </div> <% end -%> <div class="actions"> - <%% if @<%= singular_name %>.new_record? %> - <%%= f.submit 'Create' %> - <%% else %> - <%%= f.submit 'Update' %> - <%% end %> + <%%= f.submit %> </div> <%% end %> |