rebuilding rails book