Subscribe to my Feed, follow me on Twitter, recommend me on Working With Rails or see my code on GitHub
Unobtrusive JavaScript with Rails
Just finished an article about writing unobtrusive JavaScript with Rails. The title is a bit misleading, as it’s not that much about Rails, and it’s not about writing unobtrusive JS per se. It’s more about how to structure the JavaScript and create reusable code and encapsulated elements from the HTML contents that know how to do things on their own and are aware of their context. That last sentence probably came out as “blah-blah-oh-look-at-me-i’m-so-clever-blah-blah”, but it’s actually pretty simple and very useful; trust me ;)
