fix upload 500 error
This commit is contained in:
parent
2f24cc14db
commit
2129ab60fb
|
@ -2,7 +2,7 @@ class PhotosController < ApplicationController
|
|||
def create
|
||||
@photo = Photo.new(image: params["Filedata"])
|
||||
@photo.save!
|
||||
render :text=> md_url(@photo.image.url)
|
||||
render :plain => md_url(@photo.image.url)
|
||||
end
|
||||
|
||||
def md_url(url)
|
||||
|
|
Loading…
Reference in New Issue