This is my form partial:
<%= f.simple_fields_for :photo_attributes, :html => { :multipart => true } do |d| %> <%= d.label :image, :label =>
current_page?(action: 'edit')
See ActionView::Helpers::UrlHelper#current_page?
Rails also makes the methods controller_path, controller_name, action_name available for use in the view.
controller_path
controller_name
action_name