eddd979361
Webrat didn't properly follow internal redirects when using the Host header, this lets Webrat check the Host header before falling back to www.example.com as the current_host.
16 lines
837 B
Ruby
16 lines
837 B
Ruby
ActionController::Routing::Routes.draw do |map|
|
|
map.with_options :controller => "webrat" do |webrat|
|
|
webrat.submit "/submit", :action => "submit"
|
|
webrat.internal_redirect "/internal_redirect", :action => "internal_redirect"
|
|
webrat.external_redirect "/external_redirect", :action => "external_redirect"
|
|
webrat.infinite_redirect "/infinite_redirect", :action => "infinite_redirect"
|
|
webrat.host_redirect "/host_redirect", :action => "host_redirect"
|
|
|
|
webrat.before_redirect_form "/before_redirect_form", :action => "before_redirect_form"
|
|
webrat.redirect_to_show_params "/redirect_to_show_params", :action => "redirect_to_show_params"
|
|
webrat.show_params "/show_params", :action => "show_params"
|
|
|
|
webrat.root :action => "form"
|
|
end
|
|
end
|