hi,
i am very new to ruby. can u give the coding for 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)
%>
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs