RailsCasts Pro episodes are now free!

Learn more or hide this

Will Warner's Profile

GitHub User: samsaradog

Comments by Will Warner

Avatar

In Rails 4.1, we can no longer use this line:

validates_inclusion_of :time_zone, in: ActiveSupport::TimeZone.zones_map(&:name)

It needs to be:

validates_inclusion_of :time_zone, in: ActiveSupport::TimeZone.zones_map(&:name).keys

as discussed here

Avatar

Thanks for a great episode. You constantly amaze me with these ideas.

I think I found a small typo though. In /app/views/users/new.html.erb you have:

@user.errors.full_messages.each

I think you mean

@signup_form.errors.full_messages.each

Thanks again!