<%= select_tag(''quoted_condition'',
options_for_select(['''',''NEW'',''RETAIL'',''OEM'',''REFURB'']))
%>
msrk
On 7/4/06, mich <mich@nospam.com> wrote:>
> I have a field in a view, like so:
>
> <%= select_tag(''quoted_condition'',
>
options_for_select([''NEW'',''RETAIL'',''OEM'',''REFURB''],
''NEW'')) %>
>
> This sets the ''selected'' value to ''NEW''
- however, I would like to have
> a nil value here, so I can "force" the user to choose a condition
- much
> likt the :prompt option for select().
>
> Any ideas on how to do this ?
>
> /mich
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
--
Mark Van Holstyn
mvette13@gmail.com
http://lotswholetime.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060704/9b5f03f8/attachment.html