fixed error in devise shared links