Skip to content

Instantly share code, notes, and snippets.

Created July 14, 2011 12:50
Show Gist options
  • Save anonymous/1082382 to your computer and use it in GitHub Desktop.
Save anonymous/1082382 to your computer and use it in GitHub Desktop.
- if news.image
= image_tag news.image, :width => 180, :height => 150, :style => 'float:left;margin-right: 10px;'
- else
= image_tag 'noimageavailable.jpg', :width => 180, :height => 150, :style => 'float:left;margin-right: 10px;'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment