On Sep 8, 4:50 pm, "Craig Demyanovich" <[EMAIL PROTECTED]> wrote:
> A colleague of mine dealt w/ something like this awhile ago. He removed all
> error messages for tasks and added a custom one that more clearly
> communicated the situation to the user. He said that you can treat the
> errors object as an array, so see the docs for Array#delete to delete all of
> the error messages for tasks.
>From my newbie understanding of the Errors class
http://api.rubyonrails.org/classes/ActiveRecord/Errors.html it's not
really an array, but of course probably is backed by one internally.
Looks like someone put in a patch, although when I used edge rails I
didn't see it, so I just manually added the delete method to the
validations.rb as shown in the dif and it's working nicely.
http://dev.rubyonrails.org/ticket/8137
(Being new to rails, does that patch mean it should be in the edge
branch? or does it just mean it's a suggestion to add it?)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---