mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-23 06:16:42 +00:00
Update blogs_controller.rb
Fix typo
This commit is contained in:
parent
bec4f16676
commit
267007ef1b
@ -32,7 +32,7 @@ class BlogsController < ApplicationController
|
|||||||
@blog = Blog.find_by_id(params[:id])
|
@blog = Blog.find_by_id(params[:id])
|
||||||
return head :not_found if @blog.nil?
|
return head :not_found if @blog.nil?
|
||||||
@blog.thumbnail = save_uploaded_file params[:file]
|
@blog.thumbnail = save_uploaded_file params[:file]
|
||||||
head @blog.save ? :ok : :unprocsessible_entity
|
head @blog.save ? :ok : :unprocessable_entity
|
||||||
end
|
end
|
||||||
|
|
||||||
# GET /blogs
|
# GET /blogs
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user