Saving the selected item

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”?

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

http://api.rubyonrails.org/classes/ActionView/Helpers/FormOptionsHelper.html

Stephan

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs