Displaying 2 results from an estimated 2 matches for "start_new".
Did you mean:
start_nbd
2010 Apr 07
0
Problems with no method error with rufus scheduler
Hi,
I have a problem with rufus. I created a test.rb file in the /config/
initializers folder.
test.rb
require ''rubygems''
require ''rufus/scheduler''
scheduler = Rufus::Scheduler.start_new
scheduler.each ''10s'' do
puts "hey see you in 10seconds!"
end
works fine so far.
Now I change it to:
test.rb
require ''rubygems''
require ''rufus/scheduler''
scheduler = Rufus::Scheduler.start_new
scheduler.each '&...
2010 Feb 11
1
Model not found in custom script...
...sources/environment
that myrails app uses into this script?
Thanks,
Frank
task_scheduler.rb
=======================
require ''rss''
require ''rubyful_soup''
require ''tmail''
require ''rufus/scheduler''
scheduler = Rufus::Scheduler.start_new
scheduler.every("1m") do
@categories = Category.find(:all)
for category in @categories
rebuild_category_rss_data(category.id)
end
end
================
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to th...