Simple nested form question

hi, im having a 1<>N, Bol<>BolLines model, and trying to use nested
urls, but the form is confusing me…maybe someone can enlighten me:


<% form_for @bol_line do |f| %>
<%= f.error_messages %>


<%= f.label :bol_id %>
<%= f.text_field :bol_id %>


<%= f.label :package_type_id %>
<%= f.collection_select :package_type_id, PackageType.all, :id, :title %>

<%= f.label :item_id %>
<%= f.collection_select :item_id, Item.find(:all, :order => :title ), :id, :title %>

<%= f.label :amount_packages %>
<%= f.text_field :amount_packages %>

<%= f.submit "Submit" %>

<% end %> problem: leaving the as "problem" commented lines out, im lossing my "parent_id", since it doesnt get posted. (this happens all in the EDIT-view). now is this correct or am i doing something wrong? thx tom

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs