Forum: Ruby on Rails Help with Form selection lists

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
doucie (Guest)
on 2007-02-19 21:44
The code below gives me a regular form but what if I wanted to have a
drop down list with several options?

<label for="query_query_type">Query Type</label><br/>
<%= text_field 'query', 'query_type' %></p>

I know the syntax is as follows:, choices, options)

but what is the :attribute??
This topic is locked and can not be replied to.