2015-02-03から1日間の記事一覧
posts = Post.where(author: author).limit(limit).offset(offset) posts.count # => 0 ~ limit posts.except(:limit, :offset).count # => 0 ~ Rails3からexceptで適用済みの条件式を除外できる。 except - リファレンス - Railsドキュメント
posts= Posts.limit(limit).offset(offset) posts.klass # => Post(id: integer, title: string, body: text)