<%= render partial: 'shared/header', locals:{ links: [["マニュアル管理", manual_path], [@type.name + "一覧", show_list_manual_path(1, @type.id)], ["マニュアル編集", '#']]}%>

<%= @good.name.truncate(20) %> 情報編集







<%= form_for(@good) do |f| %>

カテゴリ

<%= f.select :good_type_id, @type_id, selected: @good.good_type_id %>

項目名

<%= f.text_field :name %>

メモ

<%= f.text_field :memo2 %>
<% if @uploaded_file %> <% @uploaded_file.each do |files| %>
<%= link_to '削除', files, method: :delete, data:{confirm: '本当に削除しますか?'}, class: "w8-button l-blue small"%> <% end %> <% end %> <%= f.fields_for :goods, @good do |g| %> <% if @uploading_file %> <% @uploading_file.each do |content| %> <%= g.fields_for :contents, content do |c| %>
<%= c.file_field :upload_file, class: "file" %> <% end %> <% end %> <% end %> <% end %>
<%= f.submit "マニュアル更新", class: "w8-button l-blue small"%>

直接記述


<%= f.text_area :memo_long, class: "top_memo", size: "500x100" %>
<% end %>