= 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| .col-sm-1.pt10.w60 = image_tag current_user.image_url(:thumb), alt: current_user.name, class:'w30' .col-sm-11.plr0.new-comment-form.relative .row.text-left.mt-10 .col-xs-12.col-sm-10.no-padding = f.input :body, as: :text, label: false, input_html: {class: 'js-auto-size'} .col-xs-12.col-sm-2.fileupload-container .fileupload-buttonbar span.btn.btn-info.fileinput-button i.fa.fa-paperclip input.form-control name="comment[attachments_attributes][][attachment]" type="file" autocomplete=:off button type='button' class='btn start' | Post .clearfix = f.input :commentable_type, as: :hidden = f.input :commentable_id, as: :hidden = f.input :parent_id, as: :hidden .row table.table.table-striped.bdr tbody.files