one way would be a before_filter, e.g.
class ApplicationController < ActionController::Base
before_filter :trap_xml
def trap_xml
if params[:format] == 'xml' && params[:action] != 'my_xml_action'
redirect_to :controller => 'my_xml_controller', :action =>
'my_xml_action'
end
end
end
--~--~---------~--~----~------------~-------~--~----~
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 [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-talk?hl=en
-~----------~----~----~----~------~----~------~--~---