class Mongoid::Errors::UnknownAttribute

This error is raised when trying to set a value in Mongoid that is not already set with dynamic attributes or the field is not defined.