Fixed an evil bug; two things I learned
Monday, April 7th, 20081. link_to_remote’s :update parameter is the box to put the new object in, not the box to replace
2. If you stupidly have more than one element in your DOM with the same ID (see #1), and ask for it by ID, Firefox 2 takes the last one; Firefox 3, Safari, and Opera all take the first one.
Not knowing these facts can make debugging AJAX code in Rails seriously unfun. It’s one thing when IE6 screws up your webpage, but when Firefox 2 doesn’t do what you want, it’s like it’s mocking you.
