RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: JohnKacz
Thanks. Actually the comments for that answer state that zones_map.keys is all you really need. So:
zones_map.keys
validates_inclusion_of :time_zone, in: ActiveSupport::TimeZone.zones_map.keys
Thanks. Actually the comments for that answer state that
zones_map.keys
is all you really need. So:validates_inclusion_of :time_zone, in: ActiveSupport::TimeZone.zones_map.keys