There might be answers in documentation, but i don\'t seem to find good answers. So among the three :url, :action, :method, what are their differences when used in form_for
form_for is basically used on object. For example:
<% form_for @person do |f| %>
...
<% end %>
When you click submit it will go to default action like from :new to :create, :edit => :update. If you want to specify your own action then you have to use :url and :method is used to force to post or get. For example:
<% form_for @person :url => {:action => "my_action"}, :method => "post" do |f| %>
...
<% end %>