Sha256: 432b2295ef4d14b65cb1489381527c9d3f4daa892ab79f892b42587fb3d33840
Contents?: true
Size: 454 Bytes
Versions: 10
Compression:
Stored size: 454 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(post_status: "published") end # SHOW def show @phcdevworks_tutorials_single = Tutorial::Post.friendly.find(params[:id]) end end end
Version data entries
10 entries across 10 versions & 1 rubygems