For what it’s worth, a request to that URL should be sent using the HTTP
PUT method. If I’m not mistaken Rails should then automatically provide
“12345” in params[:id].
But, the provided solutions should work for your needs.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.