convert posts/new.html.erb to form_for syntax