rlippmann
(Robert M Lippmann)
1
There is a drop-down helper, but another similar helper that might be useful is a name/value pair.
Example:
input_dictionary.address:
name: home, address: 123 elm street
name: work: 123 Main Street
… etc
Since a lot of templates which use the current drop-down have lots of:
<% if input_dropdown == ‘home’ %>
123 elm st
<%elsif input_dropdown == ‘work%>
type logic, the templates can be simplified and made more generic/extensible with this type of helper.
It could either be a changed to the existing definition of the dropdown helper adding an additional value, or subclasses from it.
tom_l
2
Closing this as a duplicate of:
FYI this is being worked on by the devs.