search for: news_photo

Displaying 1 result from an estimated 1 matches for "news_photo".

2006 Jan 13
1
file_column - how to test for empty column?
...nd display a generic image if that column is empty. I have tried both of the following code blocks: <% if @newsentry.image -%> <%= link_to(image_tag((url_for_image_column "newsentry", "image", :small), :size => "50x50", :border => 0, :class =>"news_photo"), :controller => ''news'', :action => ''article'', :id => @newsentry) %> <% else -%> <%= link_to(image_tag("/images/news/photo_news_sm.jpg", :size => "50x50", :border => 0, :class =>"news_photo"), :con...