Adding more documentation to the dummy rails application

This commit is contained in:
Garima Singh
2016-08-12 09:16:44 +08:00
parent 9c250cffe1
commit 7f97e286a9
3 changed files with 16 additions and 3 deletions

View File

@@ -16,7 +16,8 @@ class BlogsController < ApplicationController
# GET /blogs/1
def show
@blog = Blog.find(params[:id])
@blog = Blog.find_by_id(params[:id])
respond_with @blog, status: :not_found and return unless @blog
respond_with @blog
end
end