Like Ruby, Rails “just fits”—at least if your mind works a certain way. However, my (lack of) HTML expertise is dragging me down.
I’m playing with Ajax and I discovered that one of the features doesn’t work quite like I thought it did. Specifically, when you specify the id of the element you want updated, the xhr (that’s Rails shorthand for XmlHttpRequest) results appear to update the InnerHTML. For my purposes, replacing the OuterHTML would be more convenient.
Why? Because, then I could replace an entire row of a table with the same template that I use to display it in the first place, without messy conditional code in the template or using nested templates.
For some purposes, using div’s or similar to display my tabular data might work as well and be more accepting of arbitrary nesting of elements within a row, but my poor CSS vocabulary makes any success at this purely accidental.