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

Version Path
phcdevworks_tutorials-6.1.0 app/controllers/phcdevworks_tutorials/blog/tutorials_controller.rb
phcdevworks_tutorials-6.0.0 app/controllers/phcdevworks_tutorials/blog/tutorials_controller.rb
phcdevworks_tutorials-5.2.2 app/controllers/phcdevworks_tutorials/blog/tutorials_controller.rb
phcdevworks_tutorials-5.2.1 app/controllers/phcdevworks_tutorials/blog/tutorials_controller.rb
phcdevworks_tutorials-5.2.0 app/controllers/phcdevworks_tutorials/blog/tutorials_controller.rb
phcdevworks_tutorials-5.1.2 app/controllers/phcdevworks_tutorials/blog/tutorials_controller.rb
phcdevworks_tutorials-5.1.1 app/controllers/phcdevworks_tutorials/blog/tutorials_controller.rb
phcdevworks_tutorials-5.1.0 app/controllers/phcdevworks_tutorials/blog/tutorials_controller.rb
phcdevworks_tutorials-5.0.2 app/controllers/phcdevworks_tutorials/blog/tutorials_controller.rb
phcdevworks_tutorials-5.0.1 app/controllers/phcdevworks_tutorials/blog/tutorials_controller.rb