This is my form partial:
<%= f.simple_fields_for :photo_attributes, :html => { :multipart => true } do |d| %> <%= d.label :image, :label =>
Generally the form partial only contains the fields, not the form tag or the fields for, but if you have no other way, you can always see what params[:action] is currently set to and behave accordingly.
params[:action]