How best to do this?

I have the following code:

<%= collection_select(:country, :id, @country_list, :id, :country_name,
options ={:prompt => "-- Select a country --"}, :class =>"country") %>

How can I ensure that this the is validated correctly?

I have tried validates_prescence_of, but does not seem to work when I
select an actual country - it says:

Country can't be blank

Any idea what this could mean or how should I do this?
-- 
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-t...@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