The Bull Og

Onine since 1994. Offline since 1976.

See also the archive

An individual post follows.

Love the simple, rules-of-thumb write-up on which to use, when.

"Use select when you require a basic drop-down selection box populated
with data not sourced from a database."

"Use select_tag when you require a drop-down selection box populated
with data not sourced from a database, and are happy to hard code the
default selected option tag."

"Use collection_select when you require a drop-down selection box,
whose source is a model/object."

http://shiningthrough.co.uk/Select-helper-methods-in-Ruby-on-Rails