Module: ActionController::Acts::XmlrpcEndpoint::InstanceMethods

Defined in:
lib/action_controller/acts/xmlrpc_endpoint.rb

Instance Method Summary collapse

Instance Method Details

#indexObject

TODO: name this via the endpoint_action option instead of hardcoding to “index” TODO: add route automatically for this?



28
29
30
31
32
# File 'lib/action_controller/acts/xmlrpc_endpoint.rb', line 28

def index
  result = @xmlrpc_server.process(request.body)
  puts "\n\n----- BEGIN RESULT -----\n#{result}----- END RESULT -----\n\n"
  render :text => result, :content_type => 'text/xml'
end