search for: name_relative_path

Displaying 1 result from an estimated 1 matches for "name_relative_path".

Did you mean: make_relative_path
2006 Jan 25
1
url_for_file_column in parent model''s view
...ot;image_caption">Caption</label> <div class="reviewfield"><%= image.caption %></div><br /> <% end %> Which produces the following error: You have a nil object when you didn''t expect it! The error occured while evaluating nil.image.name_relative_path I also have a more general question about this function. How could url_for_file_column figure out which model object (record) to display if we are only to pass it the names of the model and relevant attribute? Shouldn''t we have to pass it an ID as well? Thanks, Sean