# Problems with select

**URL:** <https://www.ruby-forum.com/t/problems-with-select/195078>\
**Category:** Rails\
**Created:** [September 16, 2010, 1:49pm UTC](https://www.ruby-forum.com/t/problems-with-select/195078 "2010-09-16T13:49:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![h0bit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/5f8ce5/32.png) [@h0bit](https://www.ruby-forum.com/u/h0bit)\
**Post date:** [September 16, 2010, 1:49pm UTC](https://www.ruby-forum.com/t/problems-with-select/195078/1 "2010-09-16T13:49:56Z")

</div>

Hello to every bofy i’m working with Ruby and i havve the next problem  
when i want to select an option from a select.

I have the next code:

```
<p>
  <%= f.label :es_pyme, I18n.t('tog_user.model.es_pyme') %>
<select name="user[es_pyme]" class="fieldbox">
      <option value= "" >
          <%= I18n.t("tog_user.model.select_type_of_user") %>
        </option>
    <option value= "Usuario" > Usuario </option>
    <option value= "Pyme" > Pyme </option>
</select>
</p>

```

and in my model

validates\_presence\_of :es\_pyme

and when i select an option always appear that es\_pyme is null.

Which is the problem?

thanks and greetings.
