Update blogs_controller.rb

Fix typo
This commit is contained in:
MikeSmithEU 2020-07-22 11:23:01 +02:00 committed by GitHub
parent bec4f16676
commit 267007ef1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,7 @@ class BlogsController < ApplicationController
@blog = Blog.find_by_id(params[:id])
return head :not_found if @blog.nil?
@blog.thumbnail = save_uploaded_file params[:file]
head @blog.save ? :ok : :unprocsessible_entity
head @blog.save ? :ok : :unprocessable_entity
end
# GET /blogs