Jean-François

Joined

Subscriber
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.

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more.

© 2023 GoRails, LLC. All rights reserved.