sj26/fayimora-blog — comment on commit 4d2af5e2a6ec8e05019d4a90eb6e0fad0a5631a3
File: app/views/posts/_form.html.erb line 17
By sj26:

We gave it an object, so it knows that when the object is new it should go to the create action and when the object is persisted it goes to the update action. The [form helpers guide](http://guides.rubyonrails.org/form_helpers.html#relying-on-record-identification) contains all you need to know here.