Sha256: f429ad9b2e0df14b1fe76d5623cfbe5f25b87b1fc59bdcf06e0c323370cbb8fa

Contents?: true

Size: 571 Bytes

Versions: 13

Compression:

Stored size: 571 Bytes

Contents

require_dependency "phcdevworks_portfolio/application_controller"

module PhcdevworksPortfolio
  class Project::PagesController < ApplicationController

    # Layout
    layout "phcdevworks_portfolio/frontend"

    # INDEX
    def index
      @phcdevworks_projects_index = Project::Post.where(project_post_status: "published").order("project_post_title ASC")
      @phcdevworks_projects_randomizer = Project::Post.order('RANDOM()').limit(1)
    end

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

  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
phcdevworks_portfolio-10.1.1 app/controllers/phcdevworks_portfolio/project/pages_controller.rb
phcdevworks_portfolio-10.1.0 app/controllers/phcdevworks_portfolio/project/pages_controller.rb
phcdevworks_portfolio-10.0.5 app/controllers/phcdevworks_portfolio/project/pages_controller.rb
phcdevworks_portfolio-10.0.4 app/controllers/phcdevworks_portfolio/project/pages_controller.rb
phcdevworks_portfolio-10.0.3 app/controllers/phcdevworks_portfolio/project/pages_controller.rb
phcdevworks_portfolio-10.0.2 app/controllers/phcdevworks_portfolio/project/pages_controller.rb
phcdevworks_portfolio-10.0.1 app/controllers/phcdevworks_portfolio/project/pages_controller.rb
phcdevworks_portfolio-10.0.0 app/controllers/phcdevworks_portfolio/project/pages_controller.rb
phcdevworks_portfolio-9.4.0 app/controllers/phcdevworks_portfolio/project/pages_controller.rb
phcdevworks_portfolio-9.3.0 app/controllers/phcdevworks_portfolio/project/pages_controller.rb
phcdevworks_portfolio-9.2.0 app/controllers/phcdevworks_portfolio/project/pages_controller.rb
phcdevworks_portfolio-9.1.0 app/controllers/phcdevworks_portfolio/project/pages_controller.rb
phcdevworks_portfolio-9.0.1 app/controllers/phcdevworks_portfolio/project/pages_controller.rb