trying to make it work in a rails proyect