SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
-
Dec 19, 2005, 11:23 #1
- Join Date
- Jun 2003
- Location
- Iowa, USA
- Posts
- 3,749
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Rails- how to have FormOptionsHelper#select mark a selected option?
from the docs I don't see how you can specify the selected option value. Does anyone know how?
Jason Sweat ZCE - jsweat_php@yahoo.com
Book: PHP Patterns
Good Stuff: SimpleTest PHPUnit FireFox ADOdb YUI
Detestable (adjective): software that isn't testable.
-
Dec 19, 2005, 11:25 #2
- Join Date
- Jun 2004
- Location
- California
- Posts
- 440
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Its selects the option set in object[method], you would have to explicity set the correct value through that hash. Or you can check out select_tag
-
Dec 19, 2005, 13:00 #3
- Join Date
- Jun 2003
- Location
- Iowa, USA
- Posts
- 3,749
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
options_for_select was enough to get me by on this one. Thanks.
Jason Sweat ZCE - jsweat_php@yahoo.com
Book: PHP Patterns
Good Stuff: SimpleTest PHPUnit FireFox ADOdb YUI
Detestable (adjective): software that isn't testable.
Bookmarks