Sha256: e355e0721840a475695a29307bef2ec3bf62e58d914b5f13680be22d33495014
Contents?: true
Size: 562 Bytes
Versions: 19
Compression:
Stored size: 562 Bytes
Contents
require_dependency "phcdevworks_tutorials/application_controller" module PhcdevworksTutorials class Blog::CommandsController < ApplicationController # Layout layout 'phcdevworks_tutorials/frontend' # INDEX def index @phcdevworks_commands_index = Command::Post.where(post_status: "published").order("created_at DESC") @phcdevworks_commands_photo_randomizer = Command::Post.order('RANDOM()').limit(1) end # SHOW def show @phcdevworks_commands_single = Command::Post.friendly.find(params[:id]) end end end
Version data entries
19 entries across 19 versions & 1 rubygems