back to

Ruby on Rails To-do List

ARCHIVED

Archived: This project has been archived. Cards can no longer be completed.

Viewing Todo Lists

Stefy
Stefy completed this card.
Last updated
Create scopes:

class TodoItem < ActiveRecord::Base
  scope :complete, -> { where("completed_at is not null") }
  scope :incomplete, -> { where(completed_at: nil) }
end