NOTE: I have now created a jQuery plugin which is my attempt of a solution to this issue. I am sure that it could be improved and i\'ve probably overlooked lots of use c
I like the RameshVel approach. I also found the Paloma gem to create page-specific JavaScript. For instance:
Paloma.controller('Admin/Users', { new: function(){ // Handle new admin user } });