Thanks, 7stud, the issue is solved with MyModel.create!(:ip => request.remote_ip.force_encoding('UTF-8'))
Apparently the sqlite adapter looks into the encoding before saving. Still not clear if this should not be considered a bug. Alexey. -- Posted via http://www.ruby-forum.com/. -- 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 rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.