mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-25 07:16:40 +00:00
Adding more documentation to the dummy rails application
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user