Displaying 1 result from an estimated 1 matches for "prd_big_imag".
Did you mean:
prd_big_image
2008 Sep 15
1
url_for_file_column within if within a partial
I have a partial that has the following code:
<% if product.prd_big_image.nil? %>
<img alt="Image" src="/images/empty.jpg">
<% else %>
<%= image_tag url_for_file_column(:product, :prd_big_image,
"normal") %>
<% end %>
and get the following error
You have a nil object when you didn''t expect it!
T...