convert posts/edit.html.erb to form_to