search for: fac_log_test

Displaying 1 result from an estimated 1 matches for "fac_log_test".

2006 Mar 16
32
iterating a partial with :collection
...lified) - :facility: !ruby/object:Facility attributes: name: Toby I beds_a: "12" beds_m: "12" id: "1" beds_f: "12" :placements: [] My view code (fac_log_all_test) is a one liner... <%= render :partial => ''fac_log_test'', :collection => @facility_log_run %> According to the AWDWR book "Inside the partial, the local variable ''article'' will be set to the current article from the collection-the variable is named after the template. In addition, the variable article counter will...