I am developing a plugin for the Redmine project management system. To configure the plugin I am using the framework-provided settings partial. I need to store a boolean value that should be set and unset using a checkbox.
While
<input type="text" id="settings_mytext"
value="<%= settings['mytext'] %>"
name="settings[mytext]"
>
works for string and numeric values, the following does not work for boolean values or any values at all.
<input type="checkbox" id="settings_myboolean"
checked="<%= settings['myboolean'] %>"
value="<%= settings['myboolean'] %>"
name="settings[myboolean]"
>
So does anyone know how to store the checked state of a checkbox using the Redmine provided plugin settings page?
Thanks for your help.