Hi Folks,

I am a Rails newbie and trying to get a basic maintenance schedule
running.

I have a function that currently runs in my app by clicking a link in
the admin site.

I installed rufus and am trying to follow the example here:
http://www.intridea.com/2009/2/13/dead-simple-task-scheduling-in-rails?blog=company

This is my task_scheduler.rb file in its entirety

require 'rubygems'
require 'rufus/scheduler'

scheduler = Rufus::Scheduler.start_new

#scheduler.cron("0 12 * * *") do
scheduler.every("5s") do
        Thread.new do
                begin
                        Manage.run_temp_stats_processor()
                rescue Exception => e
                        puts "something went wrong : #{e}"
                end
        end

end

with this I get:
something went wrong : uninitialized constant Manage

This is for my manage_controller.rb
class ManageController < ApplicationController


and after googling and trying a bunch of things out I am at a loss. I
believe the issue is because this script is being run outside the main
app, but I am not sure (see Rails newbie disclaimer at top)

So, how can I trigger this?

Thanks Much!
Kane
--~--~---------~--~----~------------~-------~--~----~
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to