Make Tracks respond to request for xml to /todo/show/[action id]. Try it out using something like:

curl -H 'Accept: application/xml' --basic --user YOUR_TRACKS_USERNAME:YOUR_TRACKS_PASSWORD http://localhost:3000/todo/show/22



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@258 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
lukemelia 2006-06-10 06:00:32 +00:00
parent 0765c801a4
commit abbed6b376

View file

@ -131,6 +131,14 @@ class TodoController < ApplicationController
render :partial => 'action_edit_form', :object => item
end
def show
self.init
item = check_user_return_item
respond_to do |wants|
wants.xml { render :xml => item.to_xml( :root => 'todo', :except => :user_id ) }
end
end
def edit_deferred_action
self.init