Sha256: 155c2f62468b81c9384b8a29b82c5af269f6dd4eda0807632a173b068f2e95fc

Contents?: true

Size: 439 Bytes

Versions: 12

Compression:

Stored size: 439 Bytes

Contents

require_dependency "phcdevworks_press/application_controller"

module PhcdevworksPress
  class Blog::ArticlesController < ApplicationController

    # Layout
    layout "phcdevworks_press/frontend"

    # INDEX
    def index
      @phcdevworks_cms_press_index = Article::Post.where(post_status: "published")
    end

    # SHOW
    def show
      @phcdevworks_cms_press_single = Article::Post.friendly.find(params[:id])
    end

  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
phcdevworks_press-4.0.0 app/controllers/phcdevworks_press/blog/articles_controller.rb
phcdevworks_press-3.1.1 app/controllers/phcdevworks_press/blog/articles_controller.rb
phcdevworks_press-3.1.0 app/controllers/phcdevworks_press/blog/articles_controller.rb
phcdevworks_press-3.0.2 app/controllers/phcdevworks_press/blog/articles_controller.rb
phcdevworks_press-3.0.1 app/controllers/phcdevworks_press/blog/articles_controller.rb
phcdevworks_press-3.0.0 app/controllers/phcdevworks_press/blog/articles_controller.rb
phcdevworks_press-2.0.1 app/controllers/phcdevworks_press/blog/articles_controller.rb
phcdevworks_press-2.0.0 app/controllers/phcdevworks_press/blog/articles_controller.rb
phcdevworks_press-1.3.1 app/controllers/phcdevworks_press/blog/articles_controller.rb
phcdevworks_press-1.3.0 app/controllers/phcdevworks_press/blog/articles_controller.rb
phcdevworks_press-1.2.1 app/controllers/phcdevworks_press/blog/articles_controller.rb
phcdevworks_press-1.2.0 app/controllers/phcdevworks_press/blog/articles_controller.rb