How to fetch data's from database in a drop down box

hi,

i am very new to ruby. can u give the coding for to fetch data’s from
database in a drop down box

Use the collection_select helper, e.g.:

<%= collection_select(:event, :venue_id, Venue.find(:all), :id, :name)
%>