Hi, I am building an app in rails and i''m having some trouble in passing a model object to xml. The model name is event and it habtm videos, I''d like to pass the event information (name, date, description) as well the videos(link, title, duration) information to xml. With the code below i was able to pass only the event information to xml, but not the videos. def show @event = Event.find_by_id(params[:id]) respond_to do |format| format.html # show.html.erb format.xml { render :xml => @event } end end I was hoping to avoid writing rxml files... but if it is not possible someone can plz pass me a tutorial about it Thx in advance -- Fernando Raganhan Barbosa "He knows changes aren''t permanent, But change is." - Tom Sawyer Rush --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---