Rails 4: f.select returns string not integer
问题 I have form for user registration. User has to select his country via select options. When i submit form i get error Country(#70309119520500) expected, got String(#8039220) Help me please how to convert string to integer so i can insert record in database. ruby -v: ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-linux] rails -v: Rails 4.1.8 This is my html.rb form <%= form_for :user, url: users_path do |f| %> <div class="field"> <%= f.label :countries %> <% options = options_from