Scopes can also be used while creating/building a record. class Article < ActiveRecord::Base scope :published, -> ...
確定! 回上一頁