Answer the question
In order to leave comments, you need to log in
How to insert an image in Ruby on Rails?
The question is: I add html code through text_area. This code has an image. Which src should I set so that it takes the image assets/images/portfolios/full/image_name.png?
Answer the question
In order to leave comments, you need to log in
I found a solution through trial and error: < img src="/assets/portfolio/full/image_name.png" >
image_tag
Before doing anything, read the documentation on the framework for at least 20 minutes.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question