Sha256: 365d6d12f4e5c994bbfcea82f233c0f552a1d42c32a569085a0ad85d4395510c
Contents?: true
Size: 387 Bytes
Versions: 9
Compression:
Stored size: 387 Bytes
Contents
module Exposition module Concerns module Controller module PostsController extend ActiveSupport::Concern def index @posts = Post.published.sorted_by_published_date. page(params[:page]). per(10) end def show @post = Post.published.find_by_slug!(params[:id]) end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems