0.01
No commit activity in last 3 years
No release in over 3 years
Scheduler support: daily, weekly and montly repetitions
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 3.1.0
~> 1.2.0
 Project Readme

Rails Scheduler¶ ↑

<img src=“https://gemnasium.com/atd/rails-scheduler.png” />

This project provides your Rails application with support for scheduled events

  • Provide any model with database-stored scheduler (weekly, monthly, etc..)

  • Database queries to obtain instance between dates

  • Build Javascript powered scheduler forms

  • I18n and l10n support

Install¶ ↑

Just add gem 'rails-scheduler' to your Gemfile and bundle update

Usage¶ ↑

A sample migration is available at db/migrate

Then, just add to your model:

class Event < ActiveRecord::Base
  scheduler
end

Now, you can create events such as:

event = Event.create(:start_at => Time.now,
                     :end_at => Time.now + 3.hours,
                     :frequency => 2,     # weekly
                     :interval  => 1,     # every 1 week
                     :week_days => [ 1 ]) # on monday

Event.between(Date.today, Date.today + 15) #=> [ next monday, next monday + 1 week, etc.. ]

This example is based on an Event class. However, it Rails Scheduler works with any model, provided the suitable database fields are created

ToDo¶ ↑