Displaying 7 results from an estimated 7 matches for "discharge_d".
Did you mean:
discharged
2006 Feb 23
4
looping
I have a form that prints fine for one particular criteria...
facility_id = "X"
controller code looks like this...
def fac_log
@facility = Facility.find(params[:report][:facility_id])
@placement = Placement.find(:all,
:conditions => [ "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)
@pl...
2006 Feb 08
2
compound conditions in find
can''t seem to find the right syntax for this...
/script/../config/../app/controllers/placements_controller.rb:155:
syntax error
:conditions => [["placements.client_id = ?",
params[:client_id] ] and "placements.discharge_date IS NOT NULL" ],
this part works...
:conditions => ["placements.client_id = ?", params[:client_id] ]
this is what I want to add...
"placements.discharge_date IS NOT NULL"
You can see above one of the many various ways I have tried to tie them
together to make a synt...
2006 Feb 19
8
building multiple find conditions
...",
params[:beg_intake_date], params[:end_intake_date] ]
end
if params[:beg_referral_date] != "" then
@vw_string2 = ["referral_date between ? and ?",
params[:beg_referral_date], params[:end_referral_date] ]
end
if params[:beg_discharge_date] != "" then
@vw_string3 = ["discharge_date between ? and ?",
params[:beg_discharge_date], params[:end_discharge_date] ]
end
-> @vw_string = [@vw_string1, @vw_string2, @vw_string3]
@placement_pages, @placements = paginate(
:placements,...
2006 Feb 19
2
progressive updates
I have a list view and have it sorting the data presented in the list
view by clicking on the top of the column - that works fine.
Now, I want to add a pop up-list which controls 3 different levels of
record select to be presented in this list...
- ALL
- placement.discharge_date IS NULL
- placement.discharge_date IS NOT NULL
I can have 3 different ''methods'' and ''views'' and switch between them
using and use render => :partial but what I am struggling with is
passing the selection from my pop-up list to the link_to tag.
<%= opt...
2008 Jun 28
14
Date Field convert to Seconds since Epoch
Hi, I was wandering if anyone could help me with this problem:
Right now I am using a field in my database which is of type
''Date'' (in the form dd-mm-yyyy). I would like to convert this value
(for example 26-06-08) into a number of seconds since epoch or into
another form so I can compare it with todays date (from Date.now) so
that I can tell the difference between the two dates
2008 Apr 19
7
Re ad From EXCEL
Hello!!!
I have been read a much about as read data from Excel File, but I haven?t
found the necesary information to read the data.
Now, I can create a channel : channel <- odbcConnectExcel("file.xls") but I
don?t know as read the data??
I hope that you could help me. Thank you very much.
--
View this message in context:
2006 Mar 16
32
iterating a partial with :collection
following AWDWR book - ''Partials and Collections'' (rather sparse info
there too) and I might add that the wiki page on this topic is entirely
devoid of any info...be that as it may...
I have hash of several arrays that I want to iterate though and display.
the first hashed element looks like this (greatly simplified)
- :facility: !ruby/object:Facility
attributes: