Unobtrusive Javascript for Ruby on Rails (UJS) 0.3 Released

“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.” Luke Redpath and Dan Webb have released version 0.3 of their plugin for Rails to allow unobtrusive javascript. UJS for Rails […]

“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.”

Luke Redpath and Dan Webb have released version 0.3 of their plugin for Rails to allow unobtrusive javascript.

UJS for Rails makes it easy to apply behaviour to your page. Simply specify the element(s) of your page that you want the behaviour to apply to using CSS-style selectors and the event that you want to trigger the behaviour, and the Javascript that you want to run. In addition, you can write your behaviours using RJS-style Ruby to Javascript proxies.

Continue reading…

ajaxian

Unobtrusive Javascript for Ruby on Rails (UJS) 0.3 Released