i write the collection code. <%= collection_select(:info, :id, @infos, :id, :user_id, options ={:prompt => "-Select a payment"}, :class =>"info") %> which take user_id from database and show it properly..now i will want to see it, in controller i wrote: @infos= params[:info][:id] but this will not work..error ic nil value. what is the write code,that will help me..please povide so taht when i choose one value from drop down.it will show the correspoding record. -- 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 -~----------~----~----~----~------~----~------~--~---