问题归总:
ActiveRecord关联
两种模型关联的方式
has_many through
has_many as
多态
polimorphic
模型的对象调用includes方法
SaleAgreement.all.includes(:customers, :suppliers).order('agreements.updated_at DESC')
模型的joins 和includes 方法
ruby继承,子类会继承父类的哪些东西
Rails中子模型继承一个父模型,会继承到哪些?(父类的方法会继承吗?before_filter会继承吗)
find_each
find_in_batches
PublicActivity是如何统计模型修改记录的
有时间重新复习一下redis_search的完全安装,了解所有的用法
ActiveRecord中的scope
模型层的default_value