url_for (ActionView::Helpers::UrlHelper)

    # File lib/action_view/helpers/url_helper.rb, line 65
          def url_for(options = {})
            case options
            when Hash
              show_path =  options[:host].nil? ? true : false
              options = { :only_path => show_path }.update(options.symbolize_keys)
              escape  = options.key?(:escape) ? options.delete(:escape) : true
              url     = @controller.send(:url_for, options)
            when String
              escape = true
              url    = options
            when NilClass
              url = @controller.send(:url_for, nil)
            else
              escape = false
              url    = polymorphic_path(options)
            end

            escape ? escape_once(url) : url
          end