Change 'validates_presence_of' to 'presence: true' 

Of course validates_presence_of is still working but it is not explained in the guide, I think consequently should use 'presence: true' in this documentation.