150 Experience
1 Lesson Completed
0 Questions Solved


My rails 6 app is set up with amazon s3 with a react front-end.
I serve the react front-end with json and in my json I have Post model with a rich content body.
In the body I have added an image. When I serve the body in the json (body.body.to_s), the figure img src inside the action-text-attachment for my image uses instead of my rails app hostname.
I tried setting default url options host to no avail. Please, I've looked through the internet for anything that could help and come up with nothing.

logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2021 GoRails, LLC. All rights reserved.