Sha256: 63ace464655db1ec7d2a97027b9268e674360bfe08e5d7af647c4f4906b41a71
Contents?: true
Size: 373 Bytes
Versions: 4
Compression:
Stored size: 373 Bytes
Contents
module PandaCms class PostsController < ApplicationController def index end def show post = PandaCms::Post.find_by(slug: params[:slug]) # TODO: Make this much nicer in future globals = { post: post, title: post.title } render inline: "", assigns: globals, status: :ok, layout: "layouts/post" end end end
Version data entries
4 entries across 4 versions & 1 rubygems