I have an autocomplete field on my productline table, where i type the a food name and find it. However, i dont want to save this value, instead: i want to save the food_id!
see my autocomplete field on my view:
<%= f.autocomplete_field :prl_desc, autocomplete_calorie_cal_desc_productlines_path, class: 'linestringinput', placeholder: "Parent Food" %>
Thanks in Advance!