Tim Shaffer wrote in post #1041162:
> Try this. You can pass a string to include_blank
> :include_blank => "Please select"

Thanks a lot, that works fine!

Out of interest though, this passes "author_id" in the params as an 
empty string, so I have to write:
if params.has_key?(:author_id) and not params[:author_id].empty?

instead of just:
if params.has_key?(:author_id)

Does prompt pass any value in in the params?

It would also be nice to understand why :prompt => true isn't working.

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to