search for: workorderitems

Displaying 3 results from an estimated 3 matches for "workorderitems".

2006 Jan 06
2
How do I reference eagerly loaded Models in the View?
...ump, but it looks good to me - and runs well independantly), but it seems that I''m referencing the eagerly loaded data in a way that activerecord doesn''t understand (my assumption) - thus I''m getting a tonne of additional queries. [first, the domain: WorkOrders has_many: WorkOrderItems && WorkOrderItems belongs_to :WorkOrder WorkOrderItems belongs_to :ProductsAndServices secondly, the controller looks like: @work_order = WorkOrder.find(params[:id]) @work_order_items = @work_order.WorkOrderItems.find(:all, :include => [:WorkOrder, :ProductsAndServices ] ) (you...
2006 Jan 05
0
Keep the Queries Down or "Referencing eagerly loaded models"
...dump, but it looks good to me - and runs well independantly), but it seems that I''m referencing the eagerly loaded data in a way that activerecord doesn''t understand (my assumption) - thus I''m getting a tonne of extra queries. [first, the domain: WorkOrders has_many: WorkOrderItems && WorkOrderItems belongs_to :WorkOrder WorkOrderItems belongs_to :ProductsAndServices secondly, the controller looks like: @work_order = WorkOrder.find(params[:id]) @work_order_items = @work_order.WorkOrderItems.find(:all, :include => [:WorkOrder, :ProductsAndServices ] ) (yo...
2006 Mar 10
5
PDF::Writer Simpletable Iteration
Hello All: I have been working with <a href="http://ruby-pdf.rubyforge.org/pdf-writer/index.html">Austin Ziegler''s PDF::Writer</a> as a means to produce PDF documents from my Rails app. I am stumped on how to iterate through a collection of items and output them in a table format. The way I have tried it so far only returns the last item in the collection -