rails如何决定使用哪种方法?
<%= form_for @user do |f| %> <%= f.button %> <% end %>
如果@user是新记录,则使用POST并且按钮标签变为Create User,否则使用PUT并且标签变为Update User.没有更多的东西.