I’m looking for a way, how a user can type the ID of a record (i.e. /controller/23) , then press the goto button and it navigates directly to /controller/id
So the user is on the index page. There is something like a number_field_tag (input field), wrapped inside a form? You type the ID of the record and then click GOTO.
I don’t want to explain to a user they can do this simply by changing the URL, so i prefer a solution that uses the page.
Preferable non javascript. Any ideas?
Thanks.
You’ll either need to write another action to handle the translation of submission -> redirection to the URL cleanly or use a javascript solution in my opinion.
That bit of JS will accomplish what you need if you decided that a JS approach is satisfactory.