# Image tag helper not working for rails 3.1

**URL:** <https://www.ruby-forum.com/t/image-tag-helper-not-working-for-rails-3-1/207716>\
**Category:** Rails\
**Created:** [June 1, 2011, 8:11am UTC](https://www.ruby-forum.com/t/image-tag-helper-not-working-for-rails-3-1/207716 "2011-06-01T08:11:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [June 1, 2011, 8:11am UTC](https://www.ruby-forum.com/t/image-tag-helper-not-working-for-rails-3-1/207716/1 "2011-06-01T08:11:56Z")

</div>

Hi i am a ruby on rails programmer with almost a year experience i am  
having problems using the asset tag helper in rails 3.1. if i do  
something like  
\<% image\_tag(‘rails.png’) %\> the image does not get displayed. if i  
check my server log, i realized that it cannot find the image. That is  
for images. As for SCSS style sheet it works but whenever i refresh my  
browser i get a default template. then my server log says undefined  
method \>= for nil:NillClass. i dont no what to do at this moment. if i  
switch to rails 3.0.7 it all works fine but SCSS does not work at all.  
I’m using railsinstaller 1.1.1 with ruby 1.8.7.

---

<div class="post-metadata">

**Author:** ![uchenna\_okafor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/7c8e57/32.png) [@uchenna\_okafor](https://www.ruby-forum.com/u/uchenna_okafor)\
**Post date:** [June 1, 2011, 2:34pm UTC](https://www.ruby-forum.com/t/image-tag-helper-not-working-for-rails-3-1/207716/2 "2011-06-01T14:34:11Z")

</div>

You need to use the _\<%=_ tag instead of the _\<%_ tag for the output of  
the  
method to display
