Kevin’s Can

« Back to the Can

MooTools driver for Rails 3 helpers

 

Rails 3 beta has just been released with its many goodies. Thanks to a lot of effort from a group of people, it's now possible to use Rails helper methods to create remote forms, links, and submit buttons without being forced to use Prototype. As a result, we have the Rails concept of unobtrusive JavaScript.

Instead of using inline Prototype code and evil evaluations, the helpers now add HTML5 data-* attributes that get picked up by a JavaScript driver. The driver can use MooTools, jQuery or any other framework of your choice. You can also write your own driver, just the way you like it.

Sample case of using a remote helper in Rails 3:

This is great news as I now can start using helpers together with MooTools. I've published a MooTools driver to the MooTools Forge, check it out. The sources can be found at my GitHub repo.

Also, feel free to fork!

Download driver here

Loading mentions Retweet

Comments (0)

Have your say

 
Got an account with one of these? Login here, or just enter your comment below.
Posterous-login    twitter