added IntervalsController with :resources actions