%= form_for snmp_config , as: :snmp_config,method: (snmp_config.id.blank? ? "post" : "put"), html: { class: "form-horizontal" , role: "form"} do |f| %>