A before_filter is all you really need as that’s kinda what verify is anyway - a DSL for creating before_filters.
redirect_to :action=>“index” unless self.action_name.include?("_xhr") && request.xhr?
(I did not test this, and there’s a better way to test for _xhr in the action name, but I am really lazy right now )
Is that something close?