aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-09-09 08:11:53 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-09-09 08:11:53 +0000
commit7dbf051e5442713a34fe28d6480615eb6dbdc5c2 (patch)
tree02b0fa79b2d80c2e49c5aaff503e5bf80d7d8227 /actionpack
parente54b4d3b541d9eb5717505545d93566276d7fd82 (diff)
downloadrails-7dbf051e5442713a34fe28d6480615eb6dbdc5c2.tar.gz
rails-7dbf051e5442713a34fe28d6480615eb6dbdc5c2.tar.bz2
rails-7dbf051e5442713a34fe28d6480615eb6dbdc5c2.zip
Fix docs #2136 [coffee2code]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2165 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_view/helpers/form_helper.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb
index d396650fd3..ed8e8d8d10 100644
--- a/actionpack/lib/action_view/helpers/form_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_helper.rb
@@ -35,7 +35,7 @@ module ActionView
# size="20" maxsize="20" value="<%= @person.password %>" />
#
# Single?:
- # <input type="checkbox" id="person_single" name="person[single] value="1" />
+ # <input type="checkbox" id="person_single" name="person[single]" value="1" />
#
# Description:
# <textarea cols="20" rows="40" id="person_description" name="person[description]">
@@ -113,12 +113,12 @@ module ActionView
#
# Example (call, result). Imagine that @post.validated? returns 1:
# check_box("post", "validated")
- # <input type="checkbox" id="post_validate" name="post[validated] value="1" checked="checked" />
+ # <input type="checkbox" id="post_validate" name="post[validated]" value="1" checked="checked" />
# <input name="post[validated]" type="hidden" value="0" />
#
# Example (call, result). Imagine that @puppy.gooddog returns no:
# check_box("puppy", "gooddog", {}, "yes", "no")
- # <input type="checkbox" id="puppy_gooddog" name="puppy[gooddog] value="yes" />
+ # <input type="checkbox" id="puppy_gooddog" name="puppy[gooddog]" value="yes" />
# <input name="puppy[gooddog]" type="hidden" value="no" />
def check_box(object, method, options = {}, checked_value = "1", unchecked_value = "0")
InstanceTag.new(object, method, self).to_check_box_tag(options, checked_value, unchecked_value)
@@ -131,8 +131,8 @@ module ActionView
# Example (call, result). Imagine that @post.category returns "rails":
# radio_button("post", "category", "rails")
# radio_button("post", "category", "java")
- # <input type="radio" id="post_category" name="post[category] value="rails" checked="checked" />
- # <input type="radio" id="post_category" name="post[category] value="java" />
+ # <input type="radio" id="post_category" name="post[category]" value="rails" checked="checked" />
+ # <input type="radio" id="post_category" name="post[category]" value="java" />
#
def radio_button(object, method, tag_value, options = {})
InstanceTag.new(object, method, self).to_radio_button_tag(tag_value, options)