Ryan Gosling shines as a reluctant sixth-grade science teacher who has one shot to save the world.