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

Version Path
panda_cms-0.5.3 app/controllers/panda_cms/posts_controller.rb
panda_cms-0.5.2 app/controllers/panda_cms/posts_controller.rb
panda_cms-0.5.1 app/controllers/panda_cms/posts_controller.rb
panda_cms-0.5.0 app/controllers/panda_cms/posts_controller.rb
panda_cms-0.3.15 app/controllers/panda_cms/posts_controller.rb
panda_cms-0.3.14 app/controllers/panda_cms/posts_controller.rb
panda_cms-0.3.13 app/controllers/panda_cms/posts_controller.rb
panda_cms-0.3.12 app/controllers/panda_cms/posts_controller.rb
panda_cms-0.3.11 app/controllers/panda_cms/posts_controller.rb
panda_cms-0.3.10 app/controllers/panda_cms/posts_controller.rb
panda_cms-0.3.9 app/controllers/panda_cms/posts_controller.rb
panda_cms-0.3.8 app/controllers/panda_cms/posts_controller.rb
panda_cms-0.3.7 app/controllers/panda_cms/posts_controller.rb
panda_cms-0.3.6 app/controllers/panda_cms/posts_controller.rb