diff --git a/lib/generators/bootstrap/themed/templates/_form.html.slim b/lib/generators/bootstrap/themed/templates/_form.html.slim index a66df82f..9c6077ef 100644 --- a/lib/generators/bootstrap/themed/templates/_form.html.slim +++ b/lib/generators/bootstrap/themed/templates/_form.html.slim @@ -4,7 +4,7 @@ = f.label :<%= column.name %>, :class => 'control-label col-lg-2' .col-lg-10 = f.<%= column.field_type %> :<%= column.name %>, :class => 'form-control' - = f.error_span(:<%= column.name %>) + = f.error_span(:<%= column.name %>) <%- end -%> .form-group .col-lg-offset-2.col-lg-10 diff --git a/lib/generators/bootstrap/themed/templates/simple_form/_form.html.erb b/lib/generators/bootstrap/themed/templates/simple_form/_form.html.erb index 343bf4c9..91d01f1e 100644 --- a/lib/generators/bootstrap/themed/templates/simple_form/_form.html.erb +++ b/lib/generators/bootstrap/themed/templates/simple_form/_form.html.erb @@ -1,7 +1,7 @@ <%%= simple_form_for @<%= resource_name %>, :html => { :class => 'form-horizontal' } do |f| %> <%- columns.each do |column| -%> <%%= f.input :<%= column.name %> %> - <%%= error_span(@<%= resource_name %>[:<%= column.name %>]) %> + <%%= f.error_span(:<%= column.name %>) %> <%- end -%> <%- if ::SimpleForm::FormBuilder.instance_methods.include?(:wrapped_button) -%> <%%= f.button :wrapped, :cancel => <%= controller_routing_path %>_path %> diff --git a/lib/generators/bootstrap/themed/templates/simple_form/_form.html.slim b/lib/generators/bootstrap/themed/templates/simple_form/_form.html.slim index bf95b9ef..b3971984 100644 --- a/lib/generators/bootstrap/themed/templates/simple_form/_form.html.slim +++ b/lib/generators/bootstrap/themed/templates/simple_form/_form.html.slim @@ -1,7 +1,7 @@ = simple_form_for @<%= resource_name %>, :html => { :class => "form-horizontal" } do |f| <%- columns.each do |column| -%> = f.input :<%= column.name %> - = error_span(@<%= resource_name %>[:<%= column.name %>]) + = f.error_span(:<%= column.name %>) <%- end -%> <%- if ::SimpleForm::FormBuilder.instance_methods.include?(:wrapped_button) -%> = f.button :wrapped, :cancel => <%= controller_routing_path %>_path