Better error message when accessing an invalid field
Adjust to work with Rails 2.3, ruby 1.8 (!)