Sha256: 512c1368221d231ef2ee5df18efad4dcaf5a0a342c580830aab99abacddcc68c

Contents?: true

Size: 569 Bytes

Versions: 25

Compression:

Stored size: 569 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").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

25 entries across 25 versions & 1 rubygems

Version Path
phcdevworks_tutorials-11.0.1 app/controllers/phcdevworks_tutorials/blog/tutorials_controller.rb
phcdevworks_tutorials-11.0.0 app/controllers/phcdevworks_tutorials/blog/tutorials_controller.rb
phcdevworks_tutorials-10.0.0 app/controllers/phcdevworks_tutorials/blog/tutorials_controller.rb
phcdevworks_tutorials-9.0.1 app/controllers/phcdevworks_tutorials/blog/tutorials_controller.rb
phcdevworks_tutorials-9.0.0 app/controllers/phcdevworks_tutorials/blog/tutorials_controller.rb
phcdevworks_tutorials-8.0.1 app/controllers/phcdevworks_tutorials/blog/tutorials_controller.rb
phcdevworks_tutorials-8.0.0 app/controllers/phcdevworks_tutorials/blog/tutorials_controller.rb
phcdevworks_tutorials-7.0.0 app/controllers/phcdevworks_tutorials/blog/tutorials_controller.rb
phcdevworks_tutorials-6.11.0 app/controllers/phcdevworks_tutorials/blog/tutorials_controller.rb
phcdevworks_tutorials-6.10.2 app/controllers/phcdevworks_tutorials/blog/tutorials_controller.rb
phcdevworks_tutorials-6.10.1 app/controllers/phcdevworks_tutorials/blog/tutorials_controller.rb
phcdevworks_tutorials-6.10.0 app/controllers/phcdevworks_tutorials/blog/tutorials_controller.rb
phcdevworks_tutorials-6.9.0 app/controllers/phcdevworks_tutorials/blog/tutorials_controller.rb
phcdevworks_tutorials-6.8.0 app/controllers/phcdevworks_tutorials/blog/tutorials_controller.rb
phcdevworks_tutorials-6.7.0 app/controllers/phcdevworks_tutorials/blog/tutorials_controller.rb
phcdevworks_tutorials-6.6.4 app/controllers/phcdevworks_tutorials/blog/tutorials_controller.rb
phcdevworks_tutorials-6.6.3 app/controllers/phcdevworks_tutorials/blog/tutorials_controller.rb
phcdevworks_tutorials-6.6.2 app/controllers/phcdevworks_tutorials/blog/tutorials_controller.rb
phcdevworks_tutorials-6.6.1 app/controllers/phcdevworks_tutorials/blog/tutorials_controller.rb
phcdevworks_tutorials-6.6.0 app/controllers/phcdevworks_tutorials/blog/tutorials_controller.rb