Rails 2: Model.find(1) gives ActiveRecord error when id 1 does not exist
This is the expected behavior. I think David explains this the best himself, so here is a quote from Ruby, S., Thomas, D. & Hansson, D.H., 2009. Agile Web Development with Rails, Third Edition Third Edition., Pragmatic Bookshelf (p.330). When you use a finder driven by primary keys, you’re looking for a particular record. You … Read more