Sha256: 88d577fefad439943ff10b5a37d5f3506d744c8b13c460a79a522a82e1fb8f04

Contents?: true

Size: 290 Bytes

Versions: 40

Compression:

Stored size: 290 Bytes

Contents

module Virgo
  class TagsController < ApplicationController
    before_action :set_tag

    def show
      @posts = @tag.posts.publicly_viewable.order(publish_at: :desc).page(params[:page])
    end

    private

    def set_tag
      @tag = Tag.friendly.find(params[:id])
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
virgo-0.3.17 app/controllers/virgo/tags_controller.rb
virgo-0.3.16 app/controllers/virgo/tags_controller.rb
virgo-0.3.15 app/controllers/virgo/tags_controller.rb
virgo-0.3.14 app/controllers/virgo/tags_controller.rb
virgo-0.3.13 app/controllers/virgo/tags_controller.rb
virgo-0.3.12 app/controllers/virgo/tags_controller.rb
virgo-0.3.11 app/controllers/virgo/tags_controller.rb
virgo-0.3.10 app/controllers/virgo/tags_controller.rb
virgo-0.3.9 app/controllers/virgo/tags_controller.rb
virgo-0.3.8 app/controllers/virgo/tags_controller.rb
virgo-0.3.7 app/controllers/virgo/tags_controller.rb
virgo-0.3.6 app/controllers/virgo/tags_controller.rb
virgo-0.3.4 app/controllers/virgo/tags_controller.rb
virgo-0.3.3 app/controllers/virgo/tags_controller.rb
virgo-0.3.2 app/controllers/virgo/tags_controller.rb
virgo-0.3.1 app/controllers/virgo/tags_controller.rb
virgo-0.3 app/controllers/virgo/tags_controller.rb
virgo-0.2.9 app/controllers/virgo/tags_controller.rb
virgo-0.2.8 app/controllers/virgo/tags_controller.rb
virgo-0.2.7 app/controllers/virgo/tags_controller.rb