search for: current_name

Displaying 2 results from an estimated 2 matches for "current_name".

2006 May 10
0
Saving extracted data
...In the model I have this: def file_data=(file_data) @file_data = file_data write_attribute ''extension'', file_data.original_filename.split(''.'').last.downcase write_attribute("content_type", file_data.content_type) write_attribute("current_name", file_data.original_filename) write_attribute("file_size", file_data.size) read_attributes(file_data) end I also want to read the attributes of the EXIF data embedded in the picture doing something like this (this the short form): def read_attributes(file_data) img =...
2007 Sep 20
2
Rendering a partial from within that partial
...include_tag :defaults %> <ul id="name_list"><%= render :partial => ''names'', :object => @person %></ul> _names.rhml (lists the names of ''Person''. Clicking on a name reveals a form to edit that name) <% for name in @person.current_names %> <%= link_to_function (name.full_name, :onclick => "Element.show(''edit_name_#{claimantname.id}'')" %><br> <div id="edit_name_<%= claimantname.id %>" style="display:none;"> <%= form_remote_tag(:url => {:action =&...