# File lib/action_view/helpers/prototype_helper.rb, line 436 def redirect_to(location) url = location.is_a?(String) ? location : @context.url_for(location) record "window.location.href = #{url.inspect}" end