Plugins - Unobtrusive Javascript for Rails
Add to favoritesThe Unobtrusive Javascript plugin for Rails allows you to attach Javascript behaviour and events to your page elements using pure Ruby, from within your controller or view, without clogging up your rendered HTML with Javascript - either inline or in the head of your document.
The plugin also includes updates to the built-in Rails AJAX helpers that allow them to use this new unobtrusive behaviour.
