Image tag problem

Hi everybody

I´m using image_tag for show an image, saved in public/images folder,
but when I tried to see it in the browser only appears the code that I
wrote. If someone can help me, here is my view code

HOLA MUNDO

<%= link_to "My blog", posts_path %> image_tag("rails.png")

Thanks a lot

Guille S. wrote:

Hi everybody

I´m using image_tag for show an image, saved in public/images folder,
but when I tried to see it in the browser only appears the code that I
wrote. If someone can help me, here is my view code

HOLA MUNDO

<%= link_to "My blog", posts_path %> image_tag("rails.png")

Thanks a lot

I´m stupid I forgot < %= %>
thanks dor your time,because I´m very stupid. Sorry :frowning:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs