Re: [Rails] Active Record - Select by multiple days of week

2010-02-24 Thread Stephen Gallo
Thanks all. I will replace 7 with everyday and 0 for sunday. And Rick thanks for the active record code. That's exactly what I was looking for. Cheers, S Gallo On Wed, Feb 24, 2010 at 8:14 AM, Rick DeNatale wrote: > On Tue, Feb 23, 2010 at 4:33 PM, sgallo1 wrote: >> Wondering what would be th

Re: [Rails] Active Record - Select by multiple days of week

2010-02-24 Thread Rick DeNatale
On Tue, Feb 23, 2010 at 4:33 PM, sgallo1 wrote: > Wondering what would be the best way to implement this. > > I need to store that an item occurs on a specific day of the week or > everyday. > Say in the model we have a title and a day of week. > I was thinking doing a 0-7 in my model for the item

Re: [Rails] Active Record - Select by multiple days of week

2010-02-24 Thread Michael Pavling
On 23 February 2010 21:33, sgallo1 wrote: > Wondering what would be the best way to implement this. > > I need to store that an item occurs on a specific day of the week or > everyday. > Say in the model we have a title and a day of week. > I was thinking doing a 0-7 in my model for the item repre

[Rails] Active Record - Select by multiple days of week

2010-02-23 Thread sgallo1
Wondering what would be the best way to implement this. I need to store that an item occurs on a specific day of the week or everyday. Say in the model we have a title and a day of week. I was thinking doing a 0-7 in my model for the item representing the day of the week with zero being everyday.