Sha256: dd03f062bf34ba0906d6cf5d4a97d194d250e5b9a02fee2a0cb9e86f6a7ee167
Contents?: true
Size: 341 Bytes
Versions: 4
Compression:
Stored size: 341 Bytes
Contents
module PandaCms class PostsController < ApplicationController def show @posts_index_page = PandaCms::Page.find_by(path: "/#{PandaCms.config.posts[:prefix]}") @post = PandaCms::Post.find_by(slug: "/#{params[:slug]}") @title = @post.title render inline: "", status: :ok, layout: "layouts/post" end end end
Version data entries
4 entries across 4 versions & 1 rubygems