bonniecheung/OrdrInMapper — comment on commit 1186c1186f5e7f41d759f6126803b531acd744ed
File: app/controllers/locations_controller.rb line 73
By jduff:

`respond_with` will handle all of this as well. Just save the location and call `respond_with`

The `responders` gem will also take care of the flash messages for you https://github.com/plataformatec/responders

Otherwise you might need to pass the flash message into `respond_with` (just check the docs for all the options)