diff options
author | José Valim <jose.valim@gmail.com> | 2011-06-11 17:10:16 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-06-11 17:10:16 +0200 |
commit | e294009b0789acd37d9467137d112ad7fcd53711 (patch) | |
tree | 6c0f2c2b07af54fc0e3f0cf68ee5b172bbc169eb /actionpack/lib | |
parent | 28f2b981fc0899e35ed0180376bddaa1b5bcaae8 (diff) | |
download | rails-e294009b0789acd37d9467137d112ad7fcd53711.tar.gz rails-e294009b0789acd37d9467137d112ad7fcd53711.tar.bz2 rails-e294009b0789acd37d9467137d112ad7fcd53711.zip |
No need for a configuration option here.
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_view/helpers/form_tag_helper.rb | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/actionpack/lib/action_view/helpers/form_tag_helper.rb b/actionpack/lib/action_view/helpers/form_tag_helper.rb index dd19fd2de9..72bc4510b5 100644 --- a/actionpack/lib/action_view/helpers/form_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/form_tag_helper.rb @@ -17,13 +17,6 @@ module ActionView include UrlHelper include TextHelper - # You can change what the name will be for the hidden tag that forces utf8 - # encoding for forms generated with Rails form helpers. - # - # ActionView::Helpers::FormTagHelper.utf8_enforcer_param = "_unicode" - mattr_accessor :utf8_enforcer_param - @@utf8_enforcer_param = "utf8" - # Starts a form tag that points the action to an url configured with <tt>url_for_options</tt> just like # ActionController::Base#url_for. The method for the form defaults to POST. # @@ -605,10 +598,9 @@ module ActionView end # Creates the hidden UTF8 enforcer tag. Override this method in a helper - # to customize the tag. If you just need to change the field name, set the - # +config.action_view.utf8_enforcer_param+ configuration option instead. + # to customize the tag. def utf8_enforcer_tag - tag(:input, :type => "hidden", :name => utf8_enforcer_param, :value => "✓".html_safe) + tag(:input, :type => "hidden", :name => "utf8", :value => "✓".html_safe) end private |