I'm guessing, because you didn't say so, that this is ActiveRecord? Remember that Ruby is not Rails, and you are on the Ruby mailing list here. Anyway: * I believe you should use find(2) rather than find_by_id(2), although I can't see why that would cause your problem. * you haven't posted your class definition. Is it just class Webservcat < ActiveRecord::Base; end or have you done some other things in there? * try turning on logging from ActiveRecord or at your database (you didn't say what database you were using either) to check the SQL sent and the results * if you still can't solve it, better to ask again on a Rails mailing list or group, with some more detail about your code, your database setup, and the versions of ActiveRecord and Ruby you are using. Regards, Brian. -- Posted via http://www.ruby-forum.com/.