I see the warning:
DEPRECATION WARNING: Base#after_update has been deprecated, please use Base.after_update :method instead. (called from <class:City> at /home/petrushka/webdev/my_app/app/models/city.rb:4)
What should I write instead of
def after_update
....
end
You should write as follow:
at least you can pass a block instead of a method:
more info here: http://guides.rails.info/active_record_validations_callbacks.html (choose rails edge documentation)