Closed vokshirg closed 8 years ago
I believe that's a problem on your controller, what happen if you do that:
def create
geometry = Paperclip::Geometry.from_file params[:file]
image = Image.create params.permit(:file, :alt, :hint)
authorize image
raise image.file.url
end
If you do not see the URL on the exception, there is a problem with your Image
model.
Feel free to reopen if is not that :)
Hi) I'm using rails 4.2.5. I was following setup instructions, but get fail. When i uploadting file - it doesn't return url in json, but my page with editor in json format. whats wrong?