I'm a ROR newbie. I am developing an app to provided web access to a database. I have a DB table with 4 columns. They are id, board_id, workorder_id, and SerialNumber. I have a view that contains a form to create a row in the table. The code is as follows:
<h1>New uut</h1>

<p>Work Order
<%= Workorder.find(params[:id]).WONumber %></p>

<% form_tag :action => 'create' do %>

<p>Board Number
<%= select("uut", "board_id", Board.findall).collect { |b| [b.RSI_Number, b.id] } ) %></p>
<p><%= hidden_field_tag "workorder_id", params[:id] %></p>
<%= render artial => 'form' %>
<%= submit_tag "Create" %>
<% end %>

<%= link_to 'Back', :action => 'list' %>

When I click on Create I get an error because the workorder_id is null. The parameters passes to the controller are:
{"commit"=>"Create", "workorder_id"=>"8", "uut"=>{"SerialNumber"=>"jjj", "board_id"=>"1"}}

I can work around this problem by getting the workorder_id parameter directly and updating the Uut class before saving it, but my question is - Why isn't workorder_id include as part of the uut hash?

Thanks,