プロジェクト

全般

プロフィール

« | » 

リビジョン ac1db68f

高徹 高橋 徹 さんが約6年前に追加

[phase-12]can be download attached file, new term with attachment

差分を表示:

app/views/glossary_terms/new.html.erb
<h2><%=l :label_glossary_term_new %></h2>
<%= labelled_form_for :glossary_term, @term,
url: project_glossary_terms_path do |f| %>
url: project_glossary_terms_path, html: {multipart: true} do |f| %>
<%= render partial: 'glossary_terms/form', locals: {form: f} %>
<%= f.submit l(:button_create) %>
<% end %>

他の形式にエクスポート: Unified diff