Unobtrusive JavaScript For Rails 2.0 ==== This plugin is a ground up rewrite of the unobtrusive javascript plugin and a second attempt to provide solid support for progressive enhancement in rails. (c) Dan Webb 2007, licenced under an MIT licence SCRATCH === app/views/behaviors/template.js.erb '#thing:click' : function() { } '#another' : <%= draggable %> ...or... #thing:click { thing.this(); igloo } ...probably too CSS like an abstract In templates <%= apply_behaviors 'template', 'template' %> or <%= apply_behaviors %> ...which would try behaviors/controller/action.js.erb In production templates would be cached to the public directory /behaviors/whatever.js then cleared every restart Other stuff: Some support for event delegation (prob a job for Low Pro some how) No ruby based helpers just js behaviors...RemoteLink, RemoteForm etc