Insert image

<%= form_for [:admin, Lines::Picture.new], {enctype: "multipart/form-data"} do |f| %> <% end %>
<% if @article.pictures.any? %> <% @article.pictures.each do |picture| %>
<%#= image_tag picture.image_url(:preview), data: {:url => picture.image_url} %> <%= button_to admin_picture_path(picture), remote: true, confirm: "Are you sure?", method: :delete, class: 'icon-delete' do %> <% end %>
<% end %> <% end %>