# Saving the selected item

**URL:** <https://www.ruby-forum.com/t/saving-the-selected-item/168128>\
**Category:** Rails\
**Created:** [May 16, 2009, 1:19pm UTC](https://www.ruby-forum.com/t/saving-the-selected-item/168128 "2009-05-16T13:19:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghazaleh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/9de0a6/32.png) [@ghazaleh](https://www.ruby-forum.com/u/ghazaleh)\
**Post date:** [May 16, 2009, 1:19pm UTC](https://www.ruby-forum.com/t/saving-the-selected-item/168128/1 "2009-05-16T13:19:48Z")

</div>

hello  
i made a select list like this

 Married Single Divorced

how can i save the selected item into a field “stat” of the table  
“user”?

---

<div class="post-metadata">

**Author:** ![ghazaleh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/9de0a6/32.png) [@ghazaleh](https://www.ruby-forum.com/u/ghazaleh)\
**Post date:** [May 17, 2009, 4:33pm UTC](https://www.ruby-forum.com/t/saving-the-selected-item/168128/2 "2009-05-17T16:33:15Z")

</div>

Ghazaleh M. wrote:

> hello  
> i made a select list like this
> 
> Married Single Divorced
> 
> how can i save the selected item into a field “stat” of the table  
> “user”?

See the documentation for select at

> **[ActionView::Helpers::FormOptionsHelper](https://api.rubyonrails.org/classes/ActionView/Helpers/FormOptionsHelper.html)**
>
> Provides a number of methods for turning different kinds of containers into a set of option tags.

Stephan
