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.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to