before_filter :authorize
def create
+ response.headers["Content-Type"] = 'application/xml'
if request.put?
segment = Segment.from_xml(request.raw_post, true)
end
def rest
+ response.headers["Content-Type"] = 'application/xml'
unless Segment.exists?(params[:id])
render :nothing => true, :status => 404
return
end
def history
+ response.headers["Content-Type"] = 'application/xml'
segment = Segment.find(params[:id])
unless segment