lib/generators/haml/scaffold/templates/_form.html.haml in haml-rails-0.3.4 vs lib/generators/haml/scaffold/templates/_form.html.haml in haml-rails-0.3.5
- old
+ new
@@ -1,6 +1,6 @@
= form_for @<%= singular_table_name %> do |f|
- -if @<%= singular_table_name %>.errors.any?
+ - if @<%= singular_table_name %>.errors.any?
#error_explanation
%h2= "#{pluralize(@<%= singular_table_name %>.errors.count, "error")} prohibited this <%= singular_table_name %> from being saved:"
%ul
- @<%= singular_table_name %>.errors.full_messages.each do |msg|
%li= msg