Add some magic in your rails controllers, with cancan.