Sha256: 779f54c951e2f923c56e73fa8c2616b63664758b92d892ca85d1d7cf6ba22fbb

Contents?: true

Size: 475 Bytes

Versions: 4

Compression:

Stored size: 475 Bytes

Contents

require_dependency "phcpress/application_controller"

module Phcpress
  class Blog::ArticlesController < ApplicationController

    # Security, Layouts & Action Filters
    layout 'phcpress/frontend'

    # Index for All Published Posts
    def index
      @phcpress_posts_index = Article::Post.where(pststatus: "published")
    end

    # Single Page for Published Post
    def show
      @phcpress_posts_single = Article::Post.friendly.find(params[:id])
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
phcpress-53.1.0 app/controllers/phcpress/blog/articles_controller.rb
phcpress-53.0.0 app/controllers/phcpress/blog/articles_controller.rb
phcpress-52.0.0 app/controllers/phcpress/blog/articles_controller.rb
phcpress-51.0.0 app/controllers/phcpress/blog/articles_controller.rb