Sha256: 4a7044b021d57b54313da7b0374a20bbb44d80c304e37a9cd34ac73b03d473f6
Contents?: true
Size: 570 Bytes
Versions: 12
Compression:
Stored size: 570 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(command_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
12 entries across 12 versions & 1 rubygems