class ActionView::Helpers::Tags::PaperTextarea
Public Class Methods
field_type()
click to toggle source
# File lib/polymer_form/action_view/helpers/tags/paper_textarea.rb, line 17 def field_type @field_type ||= self.name.split("::").last.downcase end
Public Instance Methods
render()
click to toggle source
# File lib/polymer_form/action_view/helpers/tags/paper_textarea.rb, line 5 def render options = @options.stringify_keys add_default_name_and_id(options) if size = options.delete('size') options['cols'], options['rows'] = size.split('x') if size.respond_to?(:split) end content_tag('paper-textarea', options.delete('value') { value_before_type_cast(object) }, options) end
Private Instance Methods
field_type()
click to toggle source
# File lib/polymer_form/action_view/helpers/tags/paper_textarea.rb, line 24 def field_type self.class.field_type end