RailsCasts Pro episodes are now free!
Learn more or hide this
Resources
gem install starling script/plugin install http://svn.playtype.net/plugins/workling/ starling -d -P tmp/pids/starling.pid -q log/ script/workling_starling_client start
Workling::Remote.dispatcher = Workling::Remote::Runners::StarlingRunner.new
MailingsWorker.async_send_mailing(:mailing_id => params[:id])
class MailingsWorker < Workling::Base def send_mailing(options) mailing = Mailing.find(options[:mailing_id]) mailing.deliver end end