Sha256: 0f4da65ebcf981af427ba795f365239edea592929062bd28409141face4252c0
Contents?: true
Size: 578 Bytes
Versions: 12
Compression:
Stored size: 578 Bytes
Contents
require_dependency "phcdevworks_tutorials/application_controller" module PhcdevworksTutorials class Blog::TutorialsController < ApplicationController # Layout layout 'phcdevworks_tutorials/frontend' # INDEX def index @phcdevworks_tutorials_index = Tutorial::Post.where(tutorial_post_status: "published").order("created_at DESC") @phcdevworks_tutorials_photo_randomizer = Tutorial::Post.order('RANDOM()').limit(1) end # SHOW def show @phcdevworks_tutorials_single = Tutorial::Post.friendly.find(params[:id]) end end end
Version data entries
12 entries across 12 versions & 1 rubygems