automatically add controller methods to rails