app/controllers/my_profile/profile_email_templates_controller.rb
class ProfileEmailTemplatesController < EmailTemplatesController
needs_profile
protect "manage_email_templates", :profile
protected
def owner
profile
end
before_action only: :index do
@back_to = url_for(controller: :profile_editor)
end
end