Forum: Ruby on Rails Help with Form selection lists

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
53efab7abfd540ccedc0adbd2a702142?d=identicon&s=25 doucie (Guest)
on 2007-02-19 20: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:

form.select(:attribute, choices, options)

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