Jean-François
Joined
910 Experience
9 Lessons Completed
0 Questions Solved
Activity
You'll need to set the expires_in: nil
parameter to have idempotent signed ids generated.
Document.find(5).to_sgid(expires_in: nil)
Documented here https://github.com/rails/globalid
This way your browser will be able to display the currently selected value from the list of options.