Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7507723
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:32:43+00:00 2026-05-29T22:32:43+00:00

The method add_to_base(msg) in given link : http://rails.rubyonrails.org/classes/ActiveRecord/Errors.html#M001712 is it really adding the message

  • 0

The method add_to_base(msg) in given link :
http://rails.rubyonrails.org/classes/ActiveRecord/Errors.html#M001712

is it really adding the message to Activerecord::Base is it what the document refers to as base object ?

Although i know the method is deprecated in rails 3

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T22:32:44+00:00Added an answer on May 29, 2026 at 10:32 pm

    ActiveRecord::Base is the class that all ActiveRecord classes inherit from and it’s quite confusing to think of it as the thing that the base object is derived from even though they share the same name. Base in the context of add_to_base means an instance of Foo < ActiveRecord::Base (for example)

    It adds it to the base object rather than attaching any notion of errors directly to an attribute, this may be because an error may not specifically mention any attributes that the person may be changing or the error is associated with multiple attributes.

    For Rails 3 – its errors.add(:base, msg)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am trying to add method or variable declarations to org.eclipse.jdt.core.dom.CompilationUnit, but I can't
I am using Devise with rails and i want to add a method getAllComments,
C# 3.0 Extension methods add extensions to the base Type making calling that method
Best method to add/remove webcontrols or user controls in asp.net for dynamic forms without
I've a need to add method that will calculate a weighted sum of worker
I'm looking for method to add gradually fading or maybe blured border (I don't
I've tried the add() method but nothing is displayed when I try to add
I'd like to know if there is an automated method to add e-mail settings
I'm using Greasemonkey and JQuerys #css method to add css styles to a page.
I'd like to add a method AddDefaultNamespace() to the String class in Java so

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.