changed rails.env.testing to rails.env.staging since this is what everyone says