On 16 Sep 2007, at 06:12, David James wrote:
> I've seen reference to an 'add' method, as in Model.add.  When and  
> why would I want to use it?  Is it related to Model.collection.build?

Perhaps you're thinking of http://api.rubyonrails.org/classes/ 
ActiveRecord/Errors.html#M000960. You can use it to explicitly add a  
validation error to an attribute of an ActiveRecord instance.

Cheers,
-Tom

_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to