HI!
There are localhost:3000 my application.. but i want to create a link something like this -> localhost:3000/53843 (this is random digit rand(999999)).. How possible i can paste this run into url? and if user enter localhost:3000 he gets an error or redirect to localhost:3000/53843 ?
Ok, so I’ll assume you have a redirection model that has an ID (53843) and a redirection_path (google).com.
in your routes file, tell it to have :path=>” — otherwise it would expect /redirections/53843
Then in your controller