Class: PostsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/posts_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



2
3
4
# File 'app/controllers/posts_controller.rb', line 2

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