From d630c76f3fef54da4859d540060e90cc294b5516 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Sat, 28 Aug 2010 04:53:50 -0300 Subject: type="password" for password_fields --- actionpack/lib/action_view/helpers/form_helper.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb index 938da7aea7..d749e31e12 100644 --- a/actionpack/lib/action_view/helpers/form_helper.rb +++ b/actionpack/lib/action_view/helpers/form_helper.rb @@ -624,16 +624,16 @@ module ActionView # # ==== Examples # password_field(:login, :pass, :size => 20) - # # => + # # => # # password_field(:account, :secret, :class => "form_input") - # # => + # # => # # password_field(:user, :password, :onchange => "if $('user[password]').length > 30 { alert('Your password needs to be shorter!'); }") - # # => + # # => # # password_field(:account, :pin, :size => 20, :class => 'form_input') - # # => + # # => # def password_field(object_name, method, options = {}) InstanceTag.new(object_name, method, self, options.delete(:object)).to_input_field_tag("password", options) -- cgit v1.2.3