Displaying 1 result from an estimated 1 matches for "newsentry".
Did you mean:
new_entry
2006 Jan 13
1
file_column - how to test for empty column?
...lent file_column, but have run into an issue.
I am wanting the user to be able to *not* upload an image if they so
choose. Then I am trying to determine if that column is empty or not,
and 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 => @newse...