Sha256: a76b481f89638ecd1128a5444aa5f8ccfe132f7afd934046cc169705dffdccb2

Contents?: true

Size: 194 Bytes

Versions: 3

Compression:

Stored size: 194 Bytes

Contents

class PostsController < ApplicationController
  def show
    return not_found unless @post = Grandstand::Post.posted_on(params[:year], params[:month]).where(:url => params[:id]).first
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
grandstand-0.3.0 app/controllers/posts_controller.rb
grandstand-0.2.7 app/controllers/posts_controller.rb
grandstand-0.2.6 app/controllers/posts_controller.rb