Are there any shortcuts in Rails' ActiveRecord that enables you to search by value of a field?
For instance, let's say I have a 'user' who can be active or inactive. Is there a nice way of doing User.active? or do I need to do User.find_by_active(1)
Does this also apply to fields that may have many different values, such as a state column? e.g Ticket.open, Ticket.closed?