# Select\_tag problem or a seve (me) problem?

**URL:** <https://www.ruby-forum.com/t/select-tag-problem-or-a-seve-me-problem/174869>\
**Category:** Rails\
**Created:** [September 3, 2009, 9:53am UTC](https://www.ruby-forum.com/t/select-tag-problem-or-a-seve-me-problem/174869 "2009-09-03T09:53:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Servando](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c37758/32.png) [@Servando](https://www.ruby-forum.com/u/Servando)\
**Post date:** [September 3, 2009, 9:53am UTC](https://www.ruby-forum.com/t/select-tag-problem-or-a-seve-me-problem/174869/1 "2009-09-03T09:53:44Z")

</div>

I’m trying to use the select\_tag with :multiple =\> true and when it  
posts to the server it’s generating “—” followed by a “-” and each  
selected option. I have no idea what I’m doing wrong… Any help is  
appreciated.

Code in the view:

\<%= select\_tag ‘restaurant[holidays][]’, options\_for\_select  
([“Independence Day”, “Thanksgiving”, “Christmas Eve”, “Christmas  
Day”, “New Years Eve”, “New Years Day”]), :multiple =\> true %\>

After making the selections I end up with this in the log:

“holidays” = '—

- Independence Day
- Thanksgiving
- Christmas Eve
- Christmas Day
- New Years Day

HTML rendered from said action:

— - Independence Day - Thanksgiving - Christmas Eve - Christmas Day

- New Years Day

Cheers,  
Seve

---

<div class="post-metadata">

**Author:** ![Servando](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c37758/32.png) [@Servando](https://www.ruby-forum.com/u/Servando)\
**Post date:** [September 3, 2009, 6:19pm UTC](https://www.ruby-forum.com/t/select-tag-problem-or-a-seve-me-problem/174869/2 "2009-09-03T18:19:02Z")

</div>

The — part is the list of selected holidays in YAML - what kind of  
field are you saving them to?

–Matt J.
