0

This is my rails controller#action

Class ReportController < ApplicationController

  def monthly_report

   end

end

I need to add this particular action(monthly_report) in background job. I don't know how to do this using delayed_job gem?

Please help me to get out of this.

Dhinesh
  • 67
  • 1
  • 7

1 Answers1

0

There are lots of options.

May be you can find details here => A cron job for rails: best practices?

Also give a try with whenever. http://railscasts.com/episodes/164-cron-in-ruby

Community
  • 1
  • 1
Samiron
  • 5,169
  • 2
  • 28
  • 55