diff --git a/app/controllers/photos_controller.rb b/app/controllers/photos_controller.rb index 2999caf..a00d2db 100644 --- a/app/controllers/photos_controller.rb +++ b/app/controllers/photos_controller.rb @@ -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)