Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

dom_id returns incorrect value for destroyed records

#4296

After destroying a record, dom_id returns the value as if the record was new. This breaks the traditional method of updating destroyed items in rjs

Reported by aaronchi · March 29th, 2010 @ 07:11 PM

State: resolved
Milestone: 3.0.2
Assigned to: José Valim José Valim
Importance: Low

Activity

  1. José Valim
    José Valim
    • State changed from new to incomplete
    • Assigned user set to José Valim
    • Milestone cleared.

    Can you please give us more information about the actual behavior and the behavior you expect?

    March 29th, 2010 @ 07:36 PM

  2. Yehuda Katz (wycats)
    Yehuda Katz (wycats)

    A failing test case would be great too!

    March 29th, 2010 @ 07:38 PM

  3. aaronchi
    aaronchi

    Example:

    note = Note.new
    dom_id(note)
    => "note_1"
    note.destory
    dom_id(note)
    => "new_note"
    

    March 29th, 2010 @ 07:40 PM

  4. aaronchi
    aaronchi

    Example:

    note = Note.first
    dom_id(note)
    => "note_1"
    note.destroy
    dom_id(note)
    => "new_note"
    

    March 29th, 2010 @ 07:41 PM

  5. Repository
  6. Jeremy Kemper
    Jeremy Kemper
    • Milestone set to 3.0.2
    • Importance changed from to Low

    October 15th, 2010 @ 11:01 PM