Displaying 3 results from an estimated 3 matches for "last_updated_at".
2007 Feb 20
1
error message for record not found ?
...ssion_id])
watch_session(args)
sleep(2)
clean_up
end
def watch_session(args)
while @time_remaining > 0
sleep(1)
emrec = Emrec.find(@emrec_id)
if emrec != nil
if emrec.timer_suspended == ''no''
last_activity = emrec.last_updated_at
time_remaining_float = (last_activity + args[:initial_setting].to_i) - Time.now
@time_remaining = time_remaining_float.to_i
end
else
@time_remaining = 0
end
end
end
def clean_up
emrec = Emrec.find(@emrec_id)
if emrec != nil
em...
2007 Mar 28
1
Questions on tokenized x untokenized and date sorting
Gents, does this definition will allow me to search inside title,
sub_title and url and sort by score, rank_sort, last_updated_at_sort ?
acts_as_ferret :fields => { :title => {:boost => 2, :store => :yes},
:sub_title => {:store => :yes},
:url => {:store => :yes},
:rank_sort => {:index => :untokenized},...
2006 Oct 17
6
Session access interfers with other model access
Sorry to be such a bother but I''m not getting this.
I have two models: Emrec and Session (I''m using AR for session mgmt.) In my
worker I can access the Emrec model and delete a record, AS LONG AS I don''t
try to access the Session model. With the Session model access commented
out as below, the Emrec record gets deleted. If I uncomment those lines,
the Emrec