This project is archived and is in readonly mode.

#699 ✓wontfix
Mark Daggett

Documentation Error on ActiveResource::Errors

Reported by Mark Daggett | July 24th, 2008 @ 10:15 PM | in 2.x

Errors add_to_base has an example like so:

my_folder.errors.add_to_base("This folder has been tagged as frozen")


  1. => false


  1. => ["You can't edit an existing folder", "This folder has been tagged as frozen"]

This is incorrect because valid? clear the errors first. Here is an example:

(rdb:1) @invitation.errors.add_to_base("foo")


(rdb:1) @invitation.errors

#, @errors={"base"=>["foo"]}>

(rdb:1) @invitation.valid?



Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

People watching this ticket