Displaying 2 results from an estimated 2 matches for "actsasbackground".
Did you mean:
acts_as_background
2006 Feb 24
1
RailsCron: Trigger one time
...#39;ve some
behavior questions.
I want to trigger an event just one time at a future time. I''m using some of
your sample code to try this, but the behavior of some combinations of start,
every, and finish behave in some unpredictable ways.
3 class RailsMaintainer
4 include ActsAsBackground
5 background :remove_sessions, :start => Time.now, :every => 7.minutes,
:finish => 5.minutes.from_now
6
7
8 def self.remove_sessions
9 f = File.new("testfile", "a+")
10 fmt = "%d %b %Y at %I:%M:%S %p"
11
12...
2006 May 02
4
Bug in rails ?
Hi !
I just have a simple question.
I am writing an app using rails to familiarize myself with the framework (which is pretty cool, by the way).
I just wanted to know why these two work differently (since "find" should be a synonym for "detect" according to the Pick Axe) :
current_item = @invoice.line_items.detect {|i| i.product.id == key}
current_item =