Fix failures around Rails 3.0 usage, better exception messages