Sha256: 82ba3def63c796701462929c34f6705554843ff0216e85baf3b8eae79c8ec353

Contents?: true

Size: 228 Bytes

Versions: 1

Compression:

Stored size: 228 Bytes

Contents

module Popolo
  class PostsController < PopoloController
    inherit_resources
    respond_to :html, :json
    actions :index, :show

    def show
      @post = Post.find_by_slug_or_id(params[:id])
      show!
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
popolo-0.0.1 app/controllers/popolo/posts_controller.rb