[Rails] 2 newbie question
Patrick Aljord
patcito at gmail.com
Thu Aug 17 20:24:27 GMT 2006
Hey all,
I have 2 newbie questions,
1st question:
<%= collection_select (:region, :id, @regionall, :id,
:title,options={:prompt=>"- Select cat -"}) %>
Ignores the :prompt part while options={:include_blank => true} works.
Any idea what I´m doing work with :prompt ?
2nd question:
How can make my collection_selected to display it's third key by default?
I know it has something to do with selected_value or selected_key but
I have no idea where to put it (html_options etc...) and how to it
works, I tried but couldn't figure it out.
Thanx in advance
Pat
More information about the Rails
mailing list