Displaying 1 result from an estimated 1 matches for "prd_big_image_relative_path".
2008 Sep 15
1
url_for_file_column within if within a partial
...e" 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!
The error occurred while evaluating nil.prd_big_image_relative_path
If I run the code in a normal html.erb (not a partial) it works fine,
just has issues within the partial
any ideas?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Rub...