Rings and Gödel algebras