Help with Form selection lists

The code below gives me a regular form but what if I wanted to have a
drop down list with several options?

Query Type

<%= text_field ‘query’, ‘query_type’ %>

I know the syntax is as follows:

form.select(:attribute, choices, options)

but what is the :attribute??

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs