RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: samsaradog
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
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!
In Rails 4.1, we can no longer use this line:
It needs to be:
as discussed here
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!