Unobtrusive Javascript for Ruby On Rails

Back in February, I wrote about the nasty obtrusive inline JavaScript event handlers spat out by default in the Ruby on Rails framework. Based on David Heinemeir Hanson’s response, it was clear that this wasn’t something that was going to be addressed any time soon in the core Rails build.

Then in June, Luke Redpath announced that he had built a plug-in that would allow you to add unobtrusive JavaScript in Rails applications and that he would be working on this with Dan Webb.

Well, the boys have done good. They’ve just unveiled the UJS Rails Plugin. As the website proclaims:

Rails is a great framework, especially for writing AJAX applications, but the Javascript that the built-in Rails helpers output is a bone of contention for many. Unobtrusive Javascript for Rails aims to change that.

Right now it’s at version 0.3 and it’s looking good. If you’re a Rails developer, check out the quickstart guide.

Posted by Jeremy on Wednesday, August 23rd, 2006 at 12:31am


Working on a web app (oh, doesn’t everybody) with Ruby on Rails and well it’s included several AJAX scripts. So it’s good that we can continue develop unobtrusive Javascript. It is to be hoped that guys like you will use it, you will see what I mean.

Btw, thanks for the tip as usual Jeremy.

# Posted by G.Lindqvist on Wednesday, August 23rd, 2006 at 9:47am

thanks for this information

# Posted by Bill on Saturday, August 26th, 2006 at 2:37pm

Wish I could get my JavaScript AI Mind.html ported into Ruby.

# Posted by Mentifex on Monday, August 28th, 2006 at 4:06am

Is there any bugfix list? Or todo list?

# Posted by Nyl on Sunday, September 10th, 2006 at 10:34pm

I’m new to the Ruby development, so I have found the quickstart guide very useful. Thanks Jeremy.

# Posted by Sean on Sunday, September 10th, 2006 at 11:01pm

For newbies this guide is really useful

# Posted by Brid on Wednesday, September 13th, 2006 at 10:36pm

I began to read - nothing I can understand

# Posted by Skin Treatment on Sunday, September 17th, 2006 at 6:37pm

Sorry. Comments are closed.

August 2006

Recommended Reading

XML Subscribe

Grab the RSS feed for this blog.

JavaScript API

Grab the RSS feed of comments for this entry.