url_for_file_column @variable, ‘name’, takes an instance variable. My
question is, what if I don’t want to have to retrieve the instance
every single time but I have the image id, along with its name with me.
Could I contruct that object in a view and pass it to
<% @picture = Picture.new %>
@picture.id = …
@picture.name = …
and then pass @picture in? I tried this but when I tried the name
assignment, I got the following:
Do not know how to handle a string with value ‘somename.jpg’ that was
to a file_column.