# File lib/active_resource/base.rb, line 1006 def id_from_response(response) response['Location'][/\/([^\/]*?)(\.\w+)?$/, 1] end