Add items to a select box in _form.rhtml

I have a _form.rhtml with the following partial

Type
<%= select 'account', 'account_type', 'user' %>

How can I add other elements i.e. guest, adminstrator to the list in the
selection box.

Thanks
Reg

Type
<%= select 'account', 'account_type', 'user' %>

How can I add other elements i.e. guest, adminstrator to the list in the
selection box.

<%= select ‘account’, ‘account_type’, [[‘user’,'user],
[‘guest’,'guest],[‘administrator’,'administrator]] %>

should work. But if you had an AccountTypes model the API docs show
you a much more elegant way to achieve it:
http://api.rubyonrails.org/classes/ActionView/Helpers/FormOptionsHelper.html#M000506

glenn wrote:

Type
<%= select 'account', 'account_type', 'user' %>

How can I add other elements i.e. guest, adminstrator to the list in the
selection box.

<%= select ‘account’, ‘account_type’, [[‘user’,'user],
[‘guest’,'guest],[‘administrator’,'administrator]] %>

should work. But if you had an AccountTypes model the API docs show
you a much more elegant way to achieve it:
http://api.rubyonrails.org/classes/ActionView/Helpers/FormOptionsHelper.html#M000506

Thanks,

I finally figured out a way to do it:

Type
<%= select 'account', 'account_type', ( [['user'], ['administrator']] ) %>

but thanks for the showing me this option and for the link.

Reg