📜  rails 表单 - Ruby 代码示例

📅  最后修改于: 2022-03-11 15:04:46.249000             🧑  作者: Mango

代码示例2
<%= form_for(@doc, url: new_doc_path(@doc)) do |f| %>
<%= render partial: "form", locals: {:f => f} %>
<% end %>