Matt Matt - 1 year ago 145
HTML Question

Ruby on Rails Image in HTML code

I am trying to make an image pop up in my Ruby on Rails website. I am using the HTML doc to be my homepage and when I type in this code (below) it doesn't appear. I have been searching all over for the different way to call it but I haven't been able to generate the image on my site. Sorry I am also new to SE so if I need to add something to this please be patient and kind.

Am I missing a gemfile that I need to render images?

<!DOCTYPE html>
<p>Welcome to <%= %>.</p>

<div class="row">
<div class="large-3 columns">
<a href="" target="_self">
<img src="/home/nitrous/code/Derema_Help/app/assets/images/brands/ancor.png" alt="Ancor" border="0"/>

Answer Source

Hope this will help you

<a href="">
    <img src="/images/ancor.png"/>


<%= image_tag("ancor.png") %>
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download