I have a simple model with the following properties:
property :title, String, :required => true, :length => 1..200 property :body, String, :required => true, :length => 1..200
When I save it (using the save method) with a heading that is not checked, it will not be saved, but I get the following object:
<DataMapper::Validations::ValidationErrors:0x00000003133e10 @resource=#<Pun @id=nil @image="" @title="" @body="dsfsdf" @description=nil @published=nil @user_id=1 @round_id=nil>, @errors={}>
Therefore, the error hash is empty. However, when this body property is empty, the error hash detects its problem.
Any idea on why the error hash is empty when it includes the title property:
thanks
ms123 source share