pg gem and devise