I am using Rails 2.3.4 and "to_xml" with the :methods => option, and I want to include a Base64 encoded thumbnail image. Is there any way I can specify that that method needs to be wrapped in a cdata tag?
Example:
render :xml => @items.to_xml( :include => [:photos,:comments], :methods => [:encoded_thumb]) { |xml| xml.tag! 'total-entries', @items.total_entries xml.tag! 'per-page', @items.per_page } }