fixing bug where puts would not have id on url