Sha256: 33bb1962d6c65d1fec74b1848db1696e208767a89fd08326c620a5c8c5bae55c

Contents?: true

Size: 583 Bytes

Versions: 87

Compression:

Stored size: 583 Bytes

Contents

require 'action_view/helpers/tags/placeholderable'

module ActionView
  module Helpers
    module Tags # :nodoc:
      class TextArea < Base # :nodoc:
        include Placeholderable

        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("textarea", options.delete("value") { value_before_type_cast(object) }, options)
        end
      end
    end
  end
end

Version data entries

87 entries across 85 versions & 10 rubygems

Version Path
actionview-4.2.7.rc1 lib/action_view/helpers/tags/text_area.rb
actionview-5.0.0 lib/action_view/helpers/tags/text_area.rb
actionview-5.0.0.rc2 lib/action_view/helpers/tags/text_area.rb
actionview-5.0.0.racecar1 lib/action_view/helpers/tags/text_area.rb
actionview-5.0.0.rc1 lib/action_view/helpers/tags/text_area.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/actionview-4.2.6/lib/action_view/helpers/tags/text_area.rb
actionview-5.0.0.beta4 lib/action_view/helpers/tags/text_area.rb
actionview-4.2.6 lib/action_view/helpers/tags/text_area.rb
actionview-4.2.6.rc1 lib/action_view/helpers/tags/text_area.rb
actionview-4.2.5.2 lib/action_view/helpers/tags/text_area.rb
actionview-5.0.0.beta3 lib/action_view/helpers/tags/text_area.rb
actionview-5.0.0.beta2 lib/action_view/helpers/tags/text_area.rb
activejob-lock-0.0.2 rails/actionview/lib/action_view/helpers/tags/text_area.rb
actionview-5.0.0.beta1.1 lib/action_view/helpers/tags/text_area.rb
actionview-4.2.5.1 lib/action_view/helpers/tags/text_area.rb
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/actionview-4.2.4/lib/action_view/helpers/tags/text_area.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/actionview-4.2.4/lib/action_view/helpers/tags/text_area.rb
actionview-5.0.0.beta1 lib/action_view/helpers/tags/text_area.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/actionview-4.2.4/lib/action_view/helpers/tags/text_area.rb
actionview-4.2.5 lib/action_view/helpers/tags/text_area.rb