Sha256: be7c5e2620065a4f0b36e2505c598650ef9cf98a2a38c36b74fb9b2e4786bf5c
Contents?: true
Size: 425 Bytes
Versions: 1
Compression:
Stored size: 425 Bytes
Contents
InlineForms::SPECIAL_COLUMN_TYPES[:file_field]=:string def file_field_show(object, attribute) puts "tets#{attribute}" link_to_inline_edit object, attribute, 'xxx' #image_tag( object.send(attribute).send(:url) ) end def file_field_edit(object, attribute) file_field_tag attribute, :class => 'input_text_field' end def file_field_update(object, attribute) object.send(attribute + '=', params[attribute.to_sym]) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
inline_forms-1.0.2 | app/helpers/form_elements/file_field.rb |