Sha256: 680151f6fee0b08f8afa2e4e46837239716f96d4309a81d59cbe5efcf36f5796
Contents?: true
Size: 334 Bytes
Versions: 2
Compression:
Stored size: 334 Bytes
Contents
module PandaCms class PostsController < ApplicationController def show @posts_index_page = PandaCms::Page.find_by(path: "/#{PandaCms.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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
panda_cms-0.5.10 | app/controllers/panda_cms/posts_controller.rb |
panda_cms-0.5.9 | app/controllers/panda_cms/posts_controller.rb |