rails foundation with sessions