Displaying 2 results from an estimated 2 matches for "sold_to".
2007 Apr 04
4
Order a find using a has_many association
...like amount,
description, etc. I use the following to get the Sales Orders:
@sales_orders = SalesOrder.find(:all)
And I display them with:
<td><%= link_to sales_order.id.to_s, :action => ''show'', :id =>
sales_order.id %></td>
<td><%= sales_order.sold_to %></td>
<td><%= sales_order.ship_to %></td>
<td><%= (sales_order.rep.length < 1 ? " " : sales_order.rep) %></
td>
<td><%= sales_order.description %></td>
<td class="right_align"><%= sprintf("...
2007 Mar 22
2
Inconsistent Invalid Argument Error
...end
end
Here is the code in my controller where I call the sort_link_helper
function:
<tr>
<th><%= sort_link_helper ''Number'', ''id'' %></th>
<th><%= sort_link_helper ''Sold To'', ''sold_to'' %></th>
<th><%= sort_link_helper ''Ship To'', ''ship_to'' %></th>
<th><%= sort_link_helper ''Rep'', ''rep'' %></th>
<th><%= sort_link_help...