# File lib/merb-core/dispatch/router/behavior.rb, line 633 def redirect(url, opts = {}) raise Error, "The route has already been committed." if @route status = opts[:permanent] ? 301 : 302 @route = Route.new(@conditions, {:url => url.freeze, :status => status.freeze}, @blocks, :redirects => true) @route.register self end