Forum: Ruby on Rails RE: How do I retrieve Errors from multiple updates

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
HOGANBP (Guest)
on 2005-11-18 20:38
(Received via mailing list)
Nevermind... figured it out... for the record, this is how I did it...

     @task = Task.update @params['task'].keys, @params['task'].values
      @task.each do |t|
        if t.errors.full_messages().to_s == ""
          flash[:notice] += t.name + " updated successfully!<br />"
        else
          flash[:notice] += t.errors.full_messages().to_s + "<br />"
        end
      end
This topic is locked and can not be replied to.