Hi you all,
I have a simple REST app with a controller method like this:
def index
@sdrs = Sdr.find(:all)
respond_to do |format|
format.html
format.xml
end
end
The rxml is well constructed, however, what I get when the request is
through XML is the xml information surrounded by the layout of the app,
something like:
- Sdrs: index
-
<?xml version="1.0" encoding="UTF-8" ?>
- 693710000 62238000
How can I say that I just want the xml output?