lib/generators/bootstrap/themed/templates/simple_form/_form.html.erb in bootstrap-sass-extras-0.0.6 vs lib/generators/bootstrap/themed/templates/simple_form/_form.html.erb in bootstrap-sass-extras-0.0.7

- old
+ new

@@ -1,16 +1,16 @@ -<%%= simple_form_for @<%= resource_name %>, :html => { :class => 'form-horizontal' }, wrapper: :horizontal_form, wrapper_mappings: { check_boxes: :horizontal_radio_and_checkboxes, radio_buttons: :horizontal_radio_and_checkboxes, file: :horizontal_file_input, boolean: :horizontal_boolean } do |f| %> +<%%= simple_form_for @<%= resource_name %>, html: { class: 'form-horizontal' }, wrapper: :horizontal_form, wrapper_mappings: { check_boxes: :horizontal_radio_and_checkboxes, radio_buttons: :horizontal_radio_and_checkboxes, file: :horizontal_file_input, boolean: :horizontal_boolean } do |f| %> <%- columns.each do |column| -%> <%%= f.input :<%= column.name %> %> <%- end -%> <%- if ::SimpleForm::FormBuilder.instance_methods.include?(:wrapped_button) -%> - <%%= f.button :wrapped, :cancel => <%= controller_routing_path %>_path %> + <%%= f.button :wrapped, cancel: <%= controller_routing_path %>_path %> <%- else -%> <div class="form-group"> <div class='col-sm-offset-3 col-sm-9'> - <%%= f.button :submit, :class => 'btn-primary' %> - <%%= link_to t('.cancel', :default => t("helpers.links.cancel")), - <%= controller_routing_path %>_path, :class => 'btn btn-default' %> + <%%= f.button :submit, class: 'btn-primary' %> + <%%= link_to t('.cancel', default: t("helpers.links.cancel")), + <%= controller_routing_path %>_path, class: 'btn btn-default' %> </div> </div> <%- end -%> <%% end %>