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.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"NWRUG" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nwrug-members?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to