.page-header %h1 = link_to 'Get the Gem!', '#', :class => 'btn btn-success pull-right' Polygallery Demonstrations - flash.each do |name, msg| = content_tag :div, :class => "alert alert-#{name == :error ? "danger" : "success" } alert-dismissable", :style => 'margin-top:20px;' do %button.close{:type => "button", :data => {:dismiss => "alert"}, :aria => {:hidden => "true"} } × = msg .row .col-md-6 .panel.panel-default .panel-body %h2.lead New Event (with SimpleForm) %hr = simple_form_for @event, :url => events_path, :method => :post, :multipart => true do |f| = f.error_notification = f.input :title, :autofocus => true = simple_fields_for_polygallery :gallery, f = f.submit :class => 'btn btn-success btn-lg btn-block' .col-md-6 .panel.panel-default .panel-body %h2.lead New Event (without SimpleForm) %hr = form_for @event do |f| .form-group %label.control-label Title .controls= f.text_field :title, :class => 'form-control' = fields_for_polygallery :gallery, f = f.submit :class => 'btn btn-success btn-lg btn-block'