ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> rubyonrails-talk
rubyonrails-talk
[Rails] Question about :include_blank => true
by Dparkmit other posts by this author
Aug 13 2007 1:30PM messages near this date
[Rails] Setting Primary Key (`id` field) with fixtures | [Rails] Re: Question about :include_blank => true
Hi All,

When you include the option ":include_blank =>  true", then the select
function includes a blank option.  How do you specify text for that
option?  Many thanks from this newbie for your help!

For instance, rather than getting:

<select name="user[type_id]"> 
<option> </option>
<option value="1"> admin</option>
<option value="2"> user</option>
</select> 

I'd like to get

<select name="user[type_id]"> 
<option> [Select One]</option>
<option value="1"> admin</option>
<option value="2"> user</option>
</select> 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Ta
lk" group.
To post to this group, send email to rubyonrails-talk@[...].com
To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@[...].com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
Thread:
Dparkmit
Eric Anderson
Philip Hallstrom
Dparkmit

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved