手工撰写Rails里面的Update表单

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

<form action="/your_action/<%= escape_url(params[:id]) %>" method="post">
  <input name="authenticity_token" type="hidden" value="<%= form_authenticity_token %>"/>
  <input name="_method" type="hidden" value="put" />
...
</form>