%= form_for command , as: :command, method: command.new_record? ? :post : :put, html: { class: "form-horizontal commands-form" , role: "form"} do |f| %>