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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:16:01+00:00 2026-05-23T20:16:01+00:00

Basically, I have 4 levels of nested forms. A has B has C has

  • 0

Basically, I have 4 levels of nested forms. A has B has C has D, with D being polymorphic (A also has D). I edit all of them on one form, with javascript to add/remove B, C, and D objects.

The problem is that whenever I edit D without editing any attributes from A, B, or C, the changes do NOT save. This includes adding D’s or editing attributes of existing D’s.

If I change an attribute in any of the parent models (A, B, or C), then the changes save.

I have the exact same problem as Marking multi-level nested forms as "dirty" in Rails

It was determined in that question that it was a bug in Rails 2.3.5. I’m running 2.3.11. Could it be possible that the bug was reintroduced? Does anyone know how to check?

Greatly appreciated… 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-23T20:16:02+00:00Added an answer on May 23, 2026 at 8:16 pm

    Steven, I believe that this is a real bug in Rails. I submitted a bug report on this at one point, but it never gained traction. I think the problem is non-trivial, and I don’t yet have time to dig into the Rails code and figure out the right fix.

    My workaround was simply to be sure that somewhere along the line I “dirtied” the parent record. I believe that simply being sure that you set a value on the parent record will do the trick, even if that value is not different than the one in the db.

    When I was working on this issue, I created a jQuery dynamic parent/child/grandchild form method. You can find it here if it might be of some use to you: http://amillionbetterthings.com/2010/06/24/rails-nested-forms-with-ajax-add-and-remove/.

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

Sidebar

Related Questions

In our product, we have frames that are basically three inheritance levels down from
I basically have a page which shows a processing screen which has been flushed
So I have a table that's basically a tree. Each row has a parent
I have some code that does custom drawing. Basically it is form fill program
i'm trying to have 3 levels of lists all of which are sortable &
socket.io seems to have a basically sensible logging system for all its internals. How
I have a levels.java file where the user can pick one of 3 levels,
I basically have the following flow: XML -> JSON -> Spring MVC -> jsp
I basically have something like this: void Foo(Type ty) { var result = serializer.Deserialize<ty>(inputContent);
I basically have three tables, posts, images and postimages (this simply contains the ids

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.