unepwcmc/SAPI

View on GitHub
app/views/admin/instruments/_form.html.erb

Summary

Maintainability
Test Coverage
<%= form_for resource_instance_name, :url => collection_path, :remote => true do |f| %>

  <%= error_messages_for(@instrument) %>
  <label>MEA</label>
  <%= f.select :designation_id,
    options_from_collection_for_select(@designations, :id, :name, @instrument && @instrument.designation_id)
  %><br />
  <label>Name</label><%= f.text_field :name %><br />
<% end %>