I know there is this
<%= f.time_zone_select :time_zone, ActiveSupport::TimeZone.us_zones %>
but it returns all timezones but has the US on the top. I only want the US ones and I can't seem to figure out if there is a way to use this with select_tag or collection_select without me building my own hash. Very interested in knowing. Thanks all!
This should do the trick:
<%= f.collection_select :time_zone, ActiveSupport::TimeZone.us_zones, :name, :to_s %>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With