Sha256: 1e0c7b76ad4236d16105e8c9ca3e4839b7dbb53b99fd3536e7adf8e1abed12f2

Contents?: true

Size: 893 Bytes

Versions: 3

Compression:

Stored size: 893 Bytes

Contents

ActionController::Routing::Routes.draw do |map|
  map.resource 'links', :only => [:show]
  map.resource 'buttons', :only => [:show, :create]
  map.resource 'fields', :only => [:show]
  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.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

Version data entries

3 entries across 3 versions & 3 rubygems

Version Path
davidtrogers-webrat-0.4.4.2 spec/integration/rails/config/routes.rb
diabolo-webrat-0.4.4.2 spec/integration/rails/config/routes.rb
raldred-webrat-0.4.4.2 spec/integration/rails/config/routes.rb