pass_gen needs Rails functions to work. :environment added.