Sha256: 7576107b8284371285c595e5d4cb1dd0d16f5b53d4e6ce3d757a3b9800758fb5
Contents?: true
Size: 547 Bytes
Versions: 40
Compression:
Stored size: 547 Bytes
Contents
module Virgo class CategoriesController < ApplicationController caches_action :show, if: ->{ current_user.nil? && flash.empty? }, cache_path: ->(o){ "#{deploy_key}/#{site_key}/categories/show/#{params[:id]}/#{category_timestamp(params[:id])}/#{params[:page]}" } def show set_category @posts = @category.posts.order(publish_at: :desc).page(params[:page]) render layout: 'virgo/posts' end private def set_category @category = Category.friendly.find(params[:id]) end end end
Version data entries
40 entries across 40 versions & 1 rubygems