Sha256: 32b2321e96eda7a81927cbb6cb6faa896068b7850fe57d1efc4bf55051f31daa

Contents?: true

Size: 547 Bytes

Versions: 14

Compression:

Stored size: 547 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").order("created_at DESC")
      @phcdevworks_cms_press_randomizer = Article::Post.order('RANDOM()').limit(1)
    end

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

  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
phcdevworks_press-7.1.0 app/controllers/phcdevworks_press/blog/articles_controller.rb
phcdevworks_press-7.0.0 app/controllers/phcdevworks_press/blog/articles_controller.rb
phcdevworks_press-6.0.0 app/controllers/phcdevworks_press/blog/articles_controller.rb
phcdevworks_press-5.0.0 app/controllers/phcdevworks_press/blog/articles_controller.rb
phcdevworks_press-4.9.0 app/controllers/phcdevworks_press/blog/articles_controller.rb
phcdevworks_press-4.8.2 app/controllers/phcdevworks_press/blog/articles_controller.rb
phcdevworks_press-4.8.1 app/controllers/phcdevworks_press/blog/articles_controller.rb
phcdevworks_press-4.8.0 app/controllers/phcdevworks_press/blog/articles_controller.rb
phcdevworks_press-4.7.0 app/controllers/phcdevworks_press/blog/articles_controller.rb
phcdevworks_press-4.6.0 app/controllers/phcdevworks_press/blog/articles_controller.rb
phcdevworks_press-4.5.0 app/controllers/phcdevworks_press/blog/articles_controller.rb
phcdevworks_press-4.4.0 app/controllers/phcdevworks_press/blog/articles_controller.rb
phcdevworks_press-4.3.0 app/controllers/phcdevworks_press/blog/articles_controller.rb
phcdevworks_press-4.2.0 app/controllers/phcdevworks_press/blog/articles_controller.rb