mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-09 10:48:50 +01:00
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:
parent
0765c801a4
commit
abbed6b376
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue