I have a view that was created through the scaffold. One of the fields is a foreign key from another table. How do I make a combobox for this field with the information from this table ?
Below is showing as it is nowin view :
<%= f.number_field :workflow_id %>
Exemple into the view:
%>
<%= select_tag(:workflow, options_for_select(collection_for_select(@workflows, :name, :id), @workflow.id)) %>