search for: fac_log_all

Displaying 5 results from an estimated 5 matches for "fac_log_all".

2006 Mar 07
6
form_tag - directing to new target window
How do I use... <%= link_to "All Facilities", :action => ''fac_log_all'' %> if I add :target => "_new" that is just a parameter and not a directive. I just want reports to print into a separate window. How do I do that? It''s not clear at all to me Craig
2006 Feb 23
4
looping
...onditions => [ "facility_id = ? and discharge_date IS NULL, params[:report][:facility_id] ] ) end I can print out the form with... <%= render :partial => ''fac_log'' %> now I want to print for all facilities... controller code looks like... def fac_log_all @facility = Facility.find(:all) @placement = Placement.find(:all, :conditions => [ "facility_id = ? and discharge_date IS NULL, @facility[:id] ] ) end # note, I am not certain that ''@facility[:id]'' will work but I need the ''id''...
2006 Mar 07
0
API Suggestion
...the view helpers have a hash for method options followed by a hash for html options. I find it to be problematic at best. I think it would be best to have one hash and then add your html options as a hash entry. For example: <%= link_to "All Facilities", {:action => ''fac_log_all''}, {:target => ''_new''} %> would become <%= link_to "All Facilities", :action => ''fac_log_all'', :html => {:target => ''_new''} %> Or even better, any options that are not recognized by the method are a...
2006 Mar 22
3
strange issue locating a file
...iews/reports/client_list.rhtml U app/views/reports/rfn4.rhtml U app/views/reports/_vo_res_census.rhtml U app/views/reports/vo_weekly_census_all.rhtml U app/views/reports/vo_res_census.rhtml A app/views/reports/_voc_bhp.rhtml A app/views/reports/voc_bhp.rhtml U app/views/reports/fac_log_all.rhtml U app/views/reports/_vo_weekly_census.rhtml U app/views/reports/_fac_log-bak.rhtml U app/views/reports/disc_notif_vo.rhtml U app/views/reports/forms.rhtml U app/views/reports/_fac_log.rhtml A test/unit/notifier_test.rb A test/unit/error_mailer_test.rb A test/fixtures/n...
2006 Mar 16
32
iterating a partial with :collection
...though and display. the first hashed element looks like this (greatly simplified) - :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...