# Select or select\_tag

**URL:** <https://www.ruby-forum.com/t/select-or-select-tag/172090>\
**Category:** Rails\
**Created:** [July 14, 2009, 5:09pm UTC](https://www.ruby-forum.com/t/select-or-select-tag/172090 "2009-07-14T17:09:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rachel\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/13edae/32.png) [@Rachel\_N](https://www.ruby-forum.com/u/Rachel_N)\
**Post date:** [July 14, 2009, 5:09pm UTC](https://www.ruby-forum.com/t/select-or-select-tag/172090/1 "2009-07-14T17:09:01Z")

</div>

Which is the easiest to implement in a Rails app view when pulling data  
from tables? select or select\_tag?

Thank you,

Rachel S Nichol  
Oracle Developer  
Hargray Telephone Company

Positive Exchange of Control

Hargray’s mission: To envision and deliver customer delight

---

<div class="post-metadata">

**Author:** ![Rachel\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/13edae/32.png) [@Rachel\_N](https://www.ruby-forum.com/u/Rachel_N)\
**Post date:** [July 14, 2009, 6:01pm UTC](https://www.ruby-forum.com/t/select-or-select-tag/172090/2 "2009-07-14T18:01:37Z")

</div>

I believe they’re fairly equivalent WRT populating them w/values.

I think the main distinction is whether you’re feeding the selected  
value into a form that builds a model object or not. If you’re in a  
form\_for block, then select is easier (e.g., it uses the context of the  
form builder to save you from having to worry about how the value gets  
serialized in the params hash). If you’re in any other kind of form,  
then select\_tag may be necessary.

* * *

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Rachel N.  
Sent: Tuesday, July 14, 2009 8:08 AM  
To: removed\_email\_address@domain.invalid  
Subject: [Rails] select or select\_tag

Which is the easiest to implement in a Rails app view when pulling data  
from tables? select or select\_tag?

Thank you,  
Rachel S Nichol  
Oracle Developer  
Hargray Telephone Company

Positive Exchange of Control

Hargray’s mission: To envision and deliver customer delight

* * *

GHC Confidentiality Statement

This message and any attached files might contain confidential  
information protected by federal and state law. The information is  
intended only for the use of the individual(s) or entities originally  
named as addressees. The improper disclosure of such information may be  
subject to civil or criminal penalties. If this message reached you in  
error, please contact the sender and destroy this message. Disclosing,  
copying, forwarding, or distributing the information by unauthorized  
individuals or entities is strictly prohibited by law.
