Using RJS to replace innerHTML with a real live instance variable.
- by Steve Cotner
I can't for the life of me get RJS to replace an element's innerHTML with an instance variable's attribute, i.e. something like @thing.name
I'll show all the code (simplified from the actual project, but still complete), and I hope the solution will be forehead-slap obvious to someone...
In RoR, I've made a simple page displaying a random Chinese…