RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: cliftonite
Never mind. Got it to work. I was passing the wrong data into the validation.
I'm using the code introduced in this tutorial, and validation of the time_zone field fails with the error: Time zone is not included in the list.
#--- View ---
f.time_zone_select :time_zone, ActiveSupport::TimeZone.us_zones
#--- Model ---
validates_inclusion_of :time_zone, in: ActiveSupport::TimeZone.zones_map(&:name)
Has anyone else encountered this?