Sha256: 9fe34167a0b4baa7831cd03c1e145ea84767e5ae827b6403586e872ae5e392c0

Contents?: true

Size: 457 Bytes

Versions: 5

Compression:

Stored size: 457 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")
    end

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

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
phcdevworks_portfolio-1.0.3 app/controllers/phcdevworks_portfolio/project/pages_controller.rb
phcdevworks_portfolio-1.0.2 app/controllers/phcdevworks_portfolio/project/pages_controller.rb
phcdevworks_portfolio-1.0.1 app/controllers/phcdevworks_portfolio/project/pages_controller.rb
phcdevworks_portfolio-1.0.0 app/controllers/phcdevworks_portfolio/project/pages_controller.rb
phcdevworks_portfolio-0.4.0 app/controllers/phcdevworks_portfolio/project/pages_controller.rb