Refactor to make @todo_items an array instead of ActiveRecord::Association::CollectionsProxy etc