Rails’s named_scopes are great, and the ability to chain named_scopes together are even better. I am sure many of us have done something like this before:
User.active.live_in('Virginia')
That would give you the active users who live in the state of Virginia. You would define something like these in your User model:
Recent comments
1 year 23 weeks ago
1 year 23 weeks ago
1 year 25 weeks ago
1 year 27 weeks ago
1 year 42 weeks ago
1 year 45 weeks ago
1 year 45 weeks ago
1 year 45 weeks ago
1 year 46 weeks ago
1 year 48 weeks ago