the rails solution