search for: facility_log

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

2006 Mar 16
32
iterating a partial with :collection
...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 be set to the index of the current article...