Sha256: 47f341dd6c10f1374f15dc222e993e2d955124be4432b21587af4f63cc86a96a

Contents?: true

Size: 473 Bytes

Versions: 4

Compression:

Stored size: 473 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(post_status: "published").order("post_title ASC")
    end

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

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
phcdevworks_portfolio-4.0.0 app/controllers/phcdevworks_portfolio/project/pages_controller.rb
phcdevworks_portfolio-3.1.1 app/controllers/phcdevworks_portfolio/project/pages_controller.rb
phcdevworks_portfolio-3.1.0 app/controllers/phcdevworks_portfolio/project/pages_controller.rb
phcdevworks_portfolio-3.0.4 app/controllers/phcdevworks_portfolio/project/pages_controller.rb