Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
This paste will be private.
## code <label for="keyword_selected">Select a Keyword:</label> <%= collection_select ('keyword', 'selected', [{:id => 0, :word => "New Keyword"},@books].flatten, :id, :word) %> ## question I'd like to make a selection box with an extra item at the top. Basically if they pick "New Keyword" they fill in a text box and a new one is created. How do I change the collection_select to add one more item?
Pasted May 13, 2008 8:47PM EDT
by silkcom
Channel #rubyonrails