Closed antnbaranov closed 2 years ago
@HarshBarash I suggest debugging code on your side, I won't be able to do any investigation here. Also from your description is not clear where the error happens? On backend? Frontent? Show some logs.
@igorkasyanchuk Heh, actually I wrote this issue more to help other developers, I'm a junior dev, and I thought it should be like this to help with unexpected bugs. Although the logs almost immediately hint at this when starting from scratch;) For a couple of minutes I really thought I had missed something
In the manual you you can add routes.rb:
post "/upload" => "file_uploads#upload"
Oh, I see.
In this case, I suggest maybe making a PR improving the documentation if you want.
I'm happy to, but I'm not sure that it's suitable for all cases. As soon as I check not only my task, but also the basic case, I will make changes. Thanks
Error: Couldn't upload file: IMG_0329.JPG
Greeting. First of all, thanks for the gem! I'm trying to install it on activeadmin. Everything is fine, but an error occurs when loading the image. What should I try to check, recommendations for finding an error?
Everything is done according to the documentation
It works fine, we add image loading
Create a new model where images will be stored:
rails g model CkEditorImage file:string user_id:integer parent_id:integer parent_type:string
Code of migration may look like:
Run this migration.
Create Carrierwave uploader
rails g uploader CkEditorImage.
Open and edit it if needed.