[Bug] Collection option for time zone input doesn't limit the selection
Author: bogdanCreated Oct 5, 2024Updated Sep 10, 2025
Environment
- Ruby 3.2.2
- Rails 7.0
- Simple Form 5.3.1
Code sample
f.input :time_zone, as: :time_zone,
collection: ["London", "Berlin"].map { ActiveSupport::TimeZone[_1] },
include_blank: falseCurrent behavior
Renders all time zones as options
Expected behavior
Renders only specified time zones selection.
Source: heartcombo/simple_form