diff options
author | Jan De Poorter <jan@defv.be> | 2008-07-29 13:11:38 +0200 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-07-29 12:39:21 +0100 |
commit | 7aaf1689dda863b72623f0e52ad87e2b739cb22b (patch) | |
tree | 707d94cffa7d4c64e255c49d0826ef39ad41b6d3 /actionpack/lib/action_view | |
parent | 2cf161a384cc361d856aa76639bcb30570d67286 (diff) | |
download | rails-7aaf1689dda863b72623f0e52ad87e2b739cb22b.tar.gz rails-7aaf1689dda863b72623f0e52ad87e2b739cb22b.tar.bz2 rails-7aaf1689dda863b72623f0e52ad87e2b739cb22b.zip |
Fix that label_tag doesn't take a symbol for a name. [#719 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/helpers/form_tag_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/form_tag_helper.rb b/actionpack/lib/action_view/helpers/form_tag_helper.rb index bdfb2eebd7..e8ca02d760 100644 --- a/actionpack/lib/action_view/helpers/form_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/form_tag_helper.rb @@ -129,7 +129,7 @@ module ActionView # label_tag 'name', nil, :class => 'small_label' # # => <label for="name" class="small_label">Name</label> def label_tag(name, text = nil, options = {}) - content_tag :label, text || name.humanize, { "for" => name }.update(options.stringify_keys) + content_tag :label, text || name.to_s.humanize, { "for" => name }.update(options.stringify_keys) end # Creates a hidden form input field used to transmit data that would be lost due to HTTP's statelessness or |