提交 b3bfbbf1 编写于 作者: T Thomas Osborn

changes names in guides to better reflect diversity [ci-skip]

上级 cc7ef0cf
......@@ -35,8 +35,8 @@ module Helpers
# <select name="post[person_id]" id="post_person_id">
# <option value="">None</option>
# <option value="1">David</option>
# <option value="2" selected="selected">Sam</option>
# <option value="3">Tobias</option>
# <option value="2" selected="selected">Eileen</option>
# <option value="3">Rafael</option>
# </select>
#
# * <tt>:prompt</tt> - set to true or a prompt string. When the select element doesn't have a value yet, this prepends an option with a generic prompt -- "Please select" -- or the given prompt string.
......@@ -48,8 +48,8 @@ module Helpers
# <select name="post[person_id]" id="post_person_id">
# <option value="">Select Person</option>
# <option value="1">David</option>
# <option value="2">Sam</option>
# <option value="3">Tobias</option>
# <option value="2">Eileen</option>
# <option value="3">Rafael</option>
# </select>
#
# * <tt>:index</tt> - like the other form helpers, +select+ can accept an <tt>:index</tt> option to manually set the ID used in the resulting output. Unlike other helpers, +select+ expects this
......@@ -112,8 +112,8 @@ module FormOptionsHelper
# <select name="post[person_id]" id="post_person_id">
# <option value=""></option>
# <option value="1" selected="selected">David</option>
# <option value="2">Sam</option>
# <option value="3">Tobias</option>
# <option value="2">Eileen</option>
# <option value="3">Rafael</option>
# </select>
#
# assuming the associated person has ID 1.
......
......@@ -1153,8 +1153,8 @@ If `@article.person_id` is 1, this would become:
<select name="article[person_id]">
<option value=""></option>
<option value="1" selected="selected">David</option>
<option value="2">Sam</option>
<option value="3">Tobias</option>
<option value="2">Eileen</option>
<option value="3">Rafael</option>
</select>
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册