Closure on Rails 3

These examples demonstrate how to implement
the unobtrusive techniques expected by Rails 3.