HTML .ERB FILE (adding image using tags)
First of all we have to know the syntax of adding images in html file
which is
<img src=”image.jpg”/>
Now using this syntax will not give us image in output
To use this image first of all create a folder ( public )where app file (app.rb) is present
Now in public folder create one more folder images
Now place that image file in that images folder
now in .erb file
type this syntax
<img src=”images/image-name.jpg”/>
thats it we will get image.

Leave a reply to MarcusStowl Cancel reply