From 8116a2b981b7382c467f84597e92156385f037d7 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 13 Apr 2010 12:33:34 -0700 Subject: Cleanup indention and spacing and turn errorExplanation into error_explanation now that nobody depends on it anymore --- .../generators/erb/scaffold/templates/_form.html.erb | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'railties/lib/rails/generators/erb') 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 0615a34a85..9b83207b3f 100644 --- a/railties/lib/rails/generators/erb/scaffold/templates/_form.html.erb +++ b/railties/lib/rails/generators/erb/scaffold/templates/_form.html.erb @@ -1,13 +1,14 @@ <%%= form_for(@<%= singular_name %>) do |f| %> <%% if @<%= singular_name %>.errors.any? %> -
-

<%%= pluralize(@<%= singular_name %>.errors.count, "error") %> prohibited this <%= singular_name %> from being saved:

- -
+
+

<%%= pluralize(@<%= singular_name %>.errors.count, "error") %> prohibited this <%= singular_name %> from being saved:

+ + +
<%% end %> <% for attribute in attributes -%> -- cgit v1.2.3