fixed the rails example