Sha256: 8483c4559001ab0f255e874cbce0d37d5c3de745d0198494dab9ea13cd6bcbcd

Contents?: true

Size: 421 Bytes

Versions: 5

Compression:

Stored size: 421 Bytes

Contents

require_dependency "phcpress/application_controller"

module Phcpress
  class Frontend::ArticlesController < ApplicationController
  
    # Security & Filters
    layout '/layouts/phcpress/frontend.html.erb'
    
    # Article Index
    def index
      @articles_index = Articles::Post.all
    end
    
    # Single Article Post
    def show
      @articles_single = Articles::Post.find(params[:id])
    end
  
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
phcpress-6.6.1 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-6.6.0 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-6.5.1 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-6.5.0 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-6.4.5 app/controllers/phcpress/frontend/articles_controller.rb