search for: 9rpjh6lllbeopmvbinfcmnbpr1lh4cv8

Displaying 1 result from an estimated 1 matches for "9rpjh6lllbeopmvbinfcmnbpr1lh4cv8".

2007 Apr 04
4
Order a find using a has_many association
I''m trying to order a find through a has_many association. I have a model called SalesOrder. Each sales order has things 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