Displaying 3 results from an estimated 3 matches for "work_ord".
Did you mean:
worklord
2006 Jan 06
2
How do I reference eagerly loaded Models in the View?
...d 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''ll note that I''m eagerly loading the work_order from the
work_order_item - that''s because the WorkOrderItem model refer...
2006 Jan 05
0
Keep the Queries Down or "Referencing eagerly loaded models"
...ecord 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 ] )
(you''ll note that I''m eagerly loading the work_order from the
work_order_item - that''s because the WorkOrderItem model ref...
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 -