Class: PandaCms::PostsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- PandaCms::PostsController
- Defined in:
- app/controllers/panda_cms/posts_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
#add_breadcrumb, #authenticate_admin_user!, #authenticate_user!, #breadcrumbs, #current_user, #set_current_request_details, #user_signed_in?
Methods included from ApplicationHelper
#active_link?, #block_link_to, #component, #level_indent, #menu_indent, #nav_class, #nav_highlight_colour_classes, #panda_cms_editor, #panda_cms_form_with, #selected_nav_highlight_colour_classes, #table_indent, #title_tag
Instance Method Details
#show ⇒ Object
3 4 5 6 7 8 9 |
# File 'app/controllers/panda_cms/posts_controller.rb', line 3 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 |