> respond_to do |format|
> format.xml { render :xml => User.to_xml }
> end
>
> This would mean writing a to_xml function on ActiveRecord::Base as a
> class method. The XML this produces could look like the normal AR
> to_xml format, just without any content. An example:
>
> http://pastie.caboo.se/55136
Why not generate an xml schema? or RelaxNG? Inventing a schema
language seems like the wrong direction...
> More generally, I think this makes the Rails REST standard more
> complete, by affording an ActiveResource client the same level of
> schema knowledge that an ActiveRecord server has.
--
Cheers
Koz
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" 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/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---