Hello, I was wondering if there is any way to retrieve the list of formats defined in the respond_to block of a controller? For example if the following is in a controller: respond_to do |format| format.html format.xml { render :xml => @people.to_xml } end Is there a way to find out HTML and XML are available? I want to write a method that creates an XML list of all formats available for any given controller. Cheers, Stephanie --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---