79808839

Date: 2025-11-04 11:29:12
Score: 0.5
Natty:
Report link

There's a simpler way to achieve this, by combining options_for_select and grouped_options_for_select together:

options_for_select(["Income"]) + grouped_options_for_select([["Auto", ["Fuel", "Maintenance"]], ["Home", ["Maintanance", "Mortgage"]]])
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Rolandas Barysas