Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix docs #2136 [coffee2code]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2165 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 7dbf051e5442713a34fe28d6480615eb6dbdc5c2 1 parent e54b4d3
@dhh dhh authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 actionpack/lib/action_view/helpers/form_helper.rb
View
10 actionpack/lib/action_view/helpers/form_helper.rb
@@ -35,7 +35,7 @@ module Helpers
# 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 @@ def text_area(object, method, options = {})
#
# 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 @@ def check_box(object, method, options = {}, checked_value = "1", unchecked_value
# 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)
Please sign in to comment.
Something went wrong with that request. Please try again.