-
Hi, In an html form I have a select box. I want to have the option that comes from the db be SELECTED What I have that doesn't render is:
So in the option value I want to show SELECTED if the current song_book.id is equal to ../song.song_book_id Is there a {{if syntax for this? Do I need a helper that can return a bool? thanks |
Beta Was this translation helpful? Give feedback.
Answered by
sunng87
Feb 23, 2023
Replies: 1 comment 1 reply
-
this is a helper try |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
dave42w
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this is a helper
eq
https://docs.rs/handlebars/latest/handlebars/#built-in-helpers for thistry