Sha256: 0853e12437764cbf94dc111e3db7e98cec219695a0a7a41ca48706d35660ecce

Contents?: true

Size: 453 Bytes

Versions: 87

Compression:

Stored size: 453 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'
end

def text_field_update(object, attribute)
  object.send :write_attribute, attribute.to_sym, params[attribute.to_sym]
end

Version data entries

87 entries across 87 versions & 1 rubygems

Version Path
inline_forms-1.6.42 lib/app/helpers/form_elements/text_field.rb
inline_forms-1.6.41 lib/app/helpers/form_elements/text_field.rb
inline_forms-1.6.40 lib/app/helpers/form_elements/text_field.rb
inline_forms-1.6.39 lib/app/helpers/form_elements/text_field.rb
inline_forms-1.6.38 lib/app/helpers/form_elements/text_field.rb
inline_forms-1.6.37 lib/app/helpers/form_elements/text_field.rb
inline_forms-1.6.36 lib/app/helpers/form_elements/text_field.rb
inline_forms-1.6.35 lib/app/helpers/form_elements/text_field.rb
inline_forms-2.23 lib/app/helpers/form_elements/text_field.rb
inline_forms-2.22 lib/app/helpers/form_elements/text_field.rb
inline_forms-2.21 lib/app/helpers/form_elements/text_field.rb
inline_forms-2.2 lib/app/helpers/form_elements/text_field.rb
inline_forms-2.1 lib/app/helpers/form_elements/text_field.rb
inline_forms-2.0 lib/app/helpers/form_elements/text_field.rb
inline_forms-1.6.33 lib/app/helpers/form_elements/text_field.rb
inline_forms-1.6.32 lib/app/helpers/form_elements/text_field.rb
inline_forms-1.6.31 lib/app/helpers/form_elements/text_field.rb
inline_forms-1.6.30 lib/app/helpers/form_elements/text_field.rb
inline_forms-1.6.29 lib/app/helpers/form_elements/text_field.rb
inline_forms-1.6.28 lib/app/helpers/form_elements/text_field.rb