Go to Google Groups Home    NWRUG
Using HAML to output resources as XML for ActiveResource -- newlines & whitespace

doug livesey <biot...@gmail.com>

Hi -- I'm using HAML to generate some custom xml that I'm then using for
ActiveResource, which is going swimmingly, except that the attributes of the
models I'm getting in the ActiveResource models have whitespace and newlines
in them, like so:

#<ActiveJob:0xb6de35a8 @prefix_options={},
@attributes={"job_number"=>"\n      N0001\n    ", "job_name"=>"\n      Test
DJL\n    ", "id"=>"\n      42\n    "}

Does anyone know of an easy way to get rid of these?
Maybe an option to render, or HAML, or something?
Cheers,
   Doug.