Hi, I''m want to obtain the selected value from collection_select and to use it to display something from the same table or other tables. There is my short code : <TR> <TD><label for="country">country name</label></TD> <TD><%= collection_select(:country, :country_id, @countries, :id, :name) %></TD> </TR> by selecting a country id, my code should display the number of population, the capital and so one. Do you have any idea? Thanks -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---