Ask A Question
Notifications
You’re not receiving notifications from this thread.
Polymorphic Selects in Rails using GlobalIDs Discussion
Discussion for Polymorphic Selects in Rails using GlobalIDs
This is fantastic Chris thank you, I'm curious how this would work for the edit view of the form?
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.