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 3961976
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T03:02:26+00:00 2026-05-20T03:02:26+00:00

I have an app using Mongoid on top of MongoDB and an update is

  • 0

I have an app using Mongoid on top of MongoDB and an update is failing silently.

The code looks like this:

# Are we getting a new attribute? Yes we are!
p "attr first name = #{@attributes['first_name']}"

if user.update_attributes!(@attributes)
   u = User.find(params[:id]).to_json
end

No exception is thrown in this code. So I looked at my MongoDB log and constructed this query based on what mongo is trying to do:

db.users.update({ "_id": "4d5561276ce886c496000001" }, { $set: { "first_name": "Erinamodobo" } }, false);

Now this does not cause any exceptions but when I grab the record that was supposed to be updated with this query:

db.users.find({"email":"escharling@somecompany.com"})

I see that the “first_name” attribute has not been updated.

Any idea why this could be happening? Sounds like something stupid.

Thanks!

  • 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-20T03:02:26+00:00Added an answer on May 20, 2026 at 3:02 am

    Updating Mongoid to the latest rc.7 fixed this issue

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

Sidebar

Related Questions

I'm trying to build a new Rails app with MongoDB using Mongoid as the
I have code like this in a Rails 3 app I'm working on <%
I have an app using SQLite3. It's running pretty well, but I would like
I have a Rails 3.1 app, running on Ruby 1.9.2, Mongo 2.0.2, using Mongoid
I'm using Mongoid for my app and I have a problem setting up correct
I've got a Rails 3 app (using Mongodb and Mongoid if that makes a
I have an app using using Django Nonrel on AppEngine. I'd like to use
So I'm using mongoid in my rails app and have been referencing all of
I have the following models in my app and I am using mongoid User,
So I'm building an app using PHP and MongoDB which will have a fair

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.