<%= form_for :conversion, url: convert_ingredients_path, remote: true, method: :get, html: { id: 'conversion_form' } do |f| %> <% if @conversion %> <%= render partial: 'shared/error_list', locals: {model: @conversion} %> <% end %>
<%= f.label :input_quantity, "Quantity", class: 'control-label' %> <%= f.text_field :input_quantity, class: 'form-control quantity' %>
<%= f.label :input_units, "Units", class: 'control-label' %> <%= f.text_field :input_units, class: 'form-control units' %>
<%= f.label :scale, class: 'control-label' %> <%= f.text_field :scale, class: 'form-control scale' %>
<%= f.label :output_units, class: 'control-label' %> <%= f.text_field :output_units, class: 'form-control output_units' %>
<%= f.hidden_field :ingredient_id, class: 'ingredient_id' %> <% end %>