January 2009 Archive

Friday, January 02, 2009 Unobtrusive Javascript with Rails and jQuery

Rails defaults to using the Prototype Javascript library, and it provides helpers to generate Javascript from within your views. This approach is great for getting started with Rails, but I’d prefer to have all my Javascript be unobtrusive. There are a few Rails plugins that attempt to make the built-in Javascript helpers unobtrusive, but after playing with a few of these solutions I decided to give jQuery a try.

Read more »