I am sorry, Christoph, but from your post it is not clear, how you create a record with :ip => request.remote_ip
You probably cannot do this in console (request.remote_ip not defined), so you'll have to test it all in controller. Can you do it in 3 steps: create two records in the database (with a string and with request.remote_ip ), see what is in the database, verify that the records look identical, but find_by_ip returns only one? This is what i would do. 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 [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.

