Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def show(day, month, year, title)
- @post = Post.first(:conditions => ['day = ? AND month = ? AND year = ? AND title LIKE ?', day, month, year, "#{title}%"])
- raise NotFound unless @post
- @comments = @post.comments
- display @post
- end
Add Comment
Please, Sign In to add comment