I have two models: articles and categories with has_and_belongs_to_many(habtm) relation between them. Now I need to return answer on the GET request to the url like /article/1.xml. I need to return the information about article + information about all categories linked with this article. I have used to_xml method before but it seems like there no habtm support in it. Does anybody knows how to make this correctly? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---