Sha256: f93b7f5c7f6fc30ce67d1eac46ddf2ba71b37cecac242140ec7b772cf6664fc9
Contents?: true
Size: 389 Bytes
Versions: 57
Compression:
Stored size: 389 Bytes
Contents
InlineForms::SPECIAL_COLUMN_TYPES[:text_field]=:string def text_field_show(object, attribute) link_to_inline_edit object, attribute, object.send(attribute) end def text_field_edit(object, attribute) text_field_tag attribute, object[attribute], :class => 'input_text_field' end def text_field_update(object, attribute) object[attribute.to_s.to_sym] = params[attribute.to_sym] end
Version data entries
57 entries across 57 versions & 1 rubygems