= simple_form_for (local_assigns.has_key?(:comment) ? comment : @comment), :url=> { :controller => 'comments', :action => 'create'}, validate: true, turboboost: true, html: {class: 'upload-attachments', multipart: true} do |f| .text-left = f.input :body, as: :text, label: false .clearfix = f.input :commentable_type, as: :hidden = f.input :commentable_id, as: :hidden table.table.table-striped.bdr tbody.files .fileupload-buttonbar .btn.fileinput-button i.fa.fa-paperclip.darkgrey input.form-control name="comment[attachments_attributes][][attachment]" type="file" / button type='button' class='start bt-comment' i.fa.fa-send.darkgrey