= form_for(@adspace, :html => {:class => 'form-horizontal'}) do |f|
- if @adspace.errors.any?
#error_explanation
%h2
= pluralize(@adspace.errors.count, "error")
prohibited this adspace from being saved:
%ul
- @adspace.errors.full_messages.each do |msg|
%li= msg
%legend= @title
.control-group
= f.label :name, :class => 'control-label'
.controls
= f.text_field :name
.form-actions
= f.submit "Submit", :class => 'btn btn-primary'