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