= form_for @garden do |f|
  - if @garden.errors.any?
    #error_explanation
      %h2= "#{pluralize(@garden.errors.count, "error")} prohibited this garden from being saved:"
      %ul
        - @garden.errors.full_messages.each do |msg|
          %li= msg

  .field
    = f.label :name
    = f.text_field :name
  .actions
    = f.submit 'Save'

= form_for @garden, :html => {:class => "form-horizontal"} do |f|
  - if @garden.errors.any?
    #error_explanation
      %h2= "#{pluralize(@garden.errors.count, "error")} prohibited this garden from being saved:"
      %ul
        - @garden.errors.full_messages.each do |msg|
          %li= msg

  .control_group
    = f.label "Garden name: ", :class => 'control-label'
    .controls= f.text_field :name
  .form-actions
    = f.submit 'Save', :class => 'btn'

Use Bootstrap formatting on "new garden" form.
Use Bootstrap formatting on "new garden" form.
