# File 'app/controllers/sofa_blog/posts_controller.rb', line 2defindex@posts=SofaBlog::Post.published.allrescueActiveRecord::RecordNotFoundrender:text=>'Post not found',:status=>404end
#show ⇒ Object
8
9
10
11
12
# File 'app/controllers/sofa_blog/posts_controller.rb', line 8defshow@post=SofaBlog::Post.find(params[:id])rescueActiveRecord::RecordNotFoundrender:text=>'Post not found',:status=>404end