<%= form.select(“YOURMODEL”, YOURMODEL.find(:all).collect {|p| [p.FIELD_U_WANNA_TO_VIEW, p.FIELD_U_WANNA_SEND]}, {:include_blank => true})%>

This is how you can select data in your database to show in the selection

<%= form.select(“role”, Role.find(:all).collect {|p| [p.name, p.id]}, {:include_blank => true})%>

This the example: I want to select what I have in my Role model.

image

Create by “WhenURnotAround”