<% content_for(:page_title) do %> YiffyAPI - Edit Image <% end %> <%= render "yiff_rest/api_v2/manage/nav" %>
<%= simple_form_for(@image, url: yiff_rest_api_v2_manage_image_path(manage_id: params[:manage_id], id: params[:id]), method: :patch) do |f| %> <%= f.input(:sources_string, as: :text, label: "Sources") %> <%= f.input(:artists_string, as: :text, label: "Artists") %> <%= f.input(:category, as: :select, collection: @categories.map { |cat| [cat.name, cat.db] }) %> <%= f.button(:submit, "Update Image", name: nil) %> <% end %>