Closed yickting closed 5 years ago
I am running into the same problem...
This works :
![image alt text](image url)
Thank you for sharing the solution!
But i only see this: ![image alt text](image url)
Could you share again?
Cheers
yes just put ![image alt text](image url) in your article with the url of your image
oh sorry, my vision was blurred just now, I thought I saw some failed screenshot upload error, will give it a try, thanks !!
Same problem
This is happened when you guys are using Rails 5.*
Look at models/lines/picture.rb
on belongs_to :article, touch: true
. From Rails 5, belongs_to
is required by default. In this case, you haven't article
persisted yet. Therefore, you got the validation error message like above.
A workaround is updating codes by yourself.
Change belongs_to :article, touch: true
to belongs_to :article, touch: true, optional: true
in the picture
model.
Fixed in latest release (1.2.6)
Anyone encounter this issue as well while trying to upload images in blog post?
Would appreciate some help in fixing it.
Cheers.