<%= form_for speech, local: true, html: { class: "row" } do |f| %> <%= render "admin/shared/errors", object: speech %>
<%= f.label :img do %> <%= image_tag speech.img.present? ? speech.img.thumb.url : "", height: 300, id: "speech-img" %>
Imagen 1200x1200px <%= f.file_field :img, data: { target: "#speech-img" }, class: "input-img form-control" %> <% end %>
<%= f.label :title, t(:title) %> <%= f.text_field :title, class: "form-control", placeholder: t(:title) %>
<%= f.label :speech, t(:speech) %> <%= f.text_area :speech, class: "form-control editor", placeholder: t(:speech) %>
<% end %>