Sha256: a6f2900029a85d08db62a92eff19140d46d3cf932b81ce931d1007f09d2009e5
Contents?: true
Size: 472 Bytes
Versions: 6
Compression:
Stored size: 472 Bytes
Contents
# -*- encoding : utf-8 -*- InlineForms::SPECIAL_COLUMN_TYPES[:text_field]=:string def text_field_show(object, attribute) link_to_inline_edit object, attribute, (object.send attribute.to_sym) end def text_field_edit(object, attribute) text_field_tag attribute, (object.send attribute.to_sym), :class => 'input_text_field', :required => true end def text_field_update(object, attribute) object.send :write_attribute, attribute.to_sym, params[attribute.to_sym] end
Version data entries
6 entries across 6 versions & 1 rubygems