# File lib/active_resource/base.rb, line 1361 def create connection.post(collection_path, encode, self.class.headers).tap do |response| self.id = id_from_response(response) load_attributes_from_response(response) end end