Unique pair of Name - Level |
<%= naf_link_to_remove_fields "Remove", f %>
<%= f.hidden_field :logger_style_id %>
<%= f.label :logger_name_id, "Logger name*" %>
<%= f.select(:logger_name_id, ::Naf::LoggerName.all.map { |a| [a.name, a.id] }, include_blank: true) %>
<%= f.label :logger_level_id, "Logger level*" %>
<%= f.select(:logger_level_id, ::Naf::LoggerLevel.all.map { |a| [a.level, a.id] }, include_blank: true) %>