Sha256: 19f3327784655de0aea4138fa972ae8947b8a55a55ba9d69e5a3b57fbd2e08fd

Contents?: true

Size: 254 Bytes

Versions: 2

Compression:

Stored size: 254 Bytes

Contents

module Theblog
  class ContentNodesController < Theblog::ApplicationController
    skip_before_action :authenticate_user!, only: [:show]

    def show
      @node = ContentNode.by_parent(params[:category]).find_by!(slug: params[:slug])
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
theblog-0.0.1.1 app/controllers/theblog/content_nodes_controller.rb
theblog-0.0.1 app/controllers/theblog/content_nodes_controller.rb