search for: work_order_items

Displaying 4 results from an estimated 4 matches for "work_order_items".

2006 Jan 06
2
How do I reference eagerly loaded Models in the View?
...- 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''ll note that I''m eagerly loading the work_order from the work_order_item - that''s because the WorkOrderItem model references its work_order for some processing - see "p...
2006 Jan 05
0
Keep the Queries Down or "Referencing eagerly loaded models"
...on) - 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 ] ) (you''ll note that I''m eagerly loading the work_order from the work_order_item - that''s because the WorkOrderItem model references its work_order for some processing - see &quo...
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 -
2006 Jan 15
13
Hotlinking an entire row in an HTML table
Hi, This seems simple but I cant get it to work... I have a table with 4 or 5 columns and 20-30 rows. I''d like to have the ability to click anywhere in a particular row to fire an action, such as bringing up a "Details" page for the clicked row. This would eliminate the need to generate a "Details" link at the end of every row, which is what I have now and looks