Sha256: d6a2587cfbd9a5ccca40bfa26ba519938697e5b721bf47a5944e18c88cc1153b
Contents?: true
Size: 364 Bytes
Versions: 14
Compression:
Stored size: 364 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: "" } render inline: "", assigns: globals, status: :ok, layout: "layouts/post" end end end
Version data entries
14 entries across 14 versions & 1 rubygems