Dag Stensson wrote:
<% @current_user.entries.each do |entry| %> <%= image_tag url_for_file_column( "entry", "image") %> <% end %>
Dag,
I'm having trouble finding the documentation for url_for_file_column, so this is more of a shot in the dark then anything else, but I think the problem lies in using the string "entry" rather then the local variable entry in that method call.
You have gone through each image the user has and the record is assigned to the local variable entry in the block, but no where in that block do you make reference to that local variable, instead what I see is the quoted string "entry."
The function url_for_file_column looks like it is a helper function perhaps provided by a plugin? My first try would be to track down the documentation or source code for that function and check that you are giving it appropriate values. Another thought is that somewhere there must be a controller that is responding to the image request. (we know this because a controller/model is the only way to get something out of the database, and you said that is where the images are stored)
If this doesn't help, then you will need to post more of the error message so someone can see just exactly where that unexpected nil is in the code.