1 module ActionController
5 def initialize(controller, options = {}, infer_extension = true)
7 @extension = controller.params[:format]
8 options.reverse_merge!(:format => @extension) if options.is_a?(Hash)
10 @extension = options[:format]
13 path = controller.url_for(options).split(%r{://}).last
14 @path = normalize!(path)