Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

samsaradog's Profile

GitHub User: samsaradog

Comments by

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!