% project_form = nil %> <%= form_for project, format: :json, method: :put, remote: true, html: { id: "edit-project-dropdown-form-#{project.id}" } do |f| %> <% project_form = f %> <%= f.hidden_field :archived, value: !project.archived %> <% end %>