Hmmm - thanks Wilson. Ya know it’s interesting because I am actually
using the text entry only for new items. My current partial looks
something like this:
<% @p4.p4_priorities.each do |priority| %>
<tr>
<td><pre width="65"><%= priority.detail %></pre></td>
<td>
<%= link_to 'Edit', :action => 'editItem', :id =>
priority.id %>
<%= link_to 'Remove', :action => 'removeItem', :id =>
priority.id %>
</td>
</tr>
<% end %>
<tr>
<td colspan=2>
<%= text_field 'p4_priorities', 'detail', :size => 75
%>
<%= link_to 'Add', :action => 'create', :id => @p4,
:params => {:contact_id => @p4.contact_id } %>
</td>
</tr>
So, the list of data is dropping out fine, but trying to figure out what
I should actually be handing the text field is a little odd. Should I do
a new on the p4_priorities collection and mark it with that ‘priority’
or should I approach it some other way?
Brad Eck
Sr. Software Engineer
Pelco
3500 Pelco Way
Clovis, CA 93612
Office - 800-289-9100
Email - [email protected]