Not able to test cron job using whenever gem in rails 3
问题 I did the following to implement cron jobs in rails 3 using a "runner" instead of a rake task. Step 1: I have whenever gem installed and scheduler.rb has following: set :environment, 'development' set :output, { :error => "/log/error.log", :standard => "/log/cron.log" } every 1.minute do runner "Cron.sendAutomaticsSMS()" end Step 2: Cron file: lib/cron.rb class Cron < ActiveRecord::Base def **sendAutomaticsSMS**() ----some code here --- end end Step 3: whenever --update-crontab --set