RoR: named_scope, all records created within last 7 days?
how do i define a named_scope to return all the records that were created within the last 7 days, and then how do i use that named scope in a controller?
RoR: named_scope, all records created within last 7 days?
===

how do i define a named_scope to return all the records that were created within the last 7 days, and then how do i use that named scope in a controller?