An activity scheduling api in Rails