test/rails_app/config/routes.rb in devise-2.2.3 vs test/rails_app/config/routes.rb in devise-2.2.4

- old
+ new

@@ -15,43 +15,43 @@ # Users scope devise_for :users, :controllers => { :omniauth_callbacks => "users/omniauth_callbacks" } as :user do - match "/as/sign_in", :to => "devise/sessions#new" + get "/as/sign_in", :to => "devise/sessions#new" end - match "/sign_in", :to => "devise/sessions#new" + get "/sign_in", :to => "devise/sessions#new" # Admin scope devise_for :admin, :path => "admin_area", :controllers => { :sessions => :"admins/sessions" }, :skip => :passwords - match "/admin_area/home", :to => "admins#index", :as => :admin_root - match "/anywhere", :to => "foo#bar", :as => :new_admin_password + get "/admin_area/home", :to => "admins#index", :as => :admin_root + get "/anywhere", :to => "foo#bar", :as => :new_admin_password authenticate(:admin) do - match "/private", :to => "home#private", :as => :private + get "/private", :to => "home#private", :as => :private end authenticate(:admin, lambda { |admin| admin.active? }) do - match "/private/active", :to => "home#private", :as => :private_active + get "/private/active", :to => "home#private", :as => :private_active end authenticated :admin do - match "/dashboard", :to => "home#admin_dashboard" + get "/dashboard", :to => "home#admin_dashboard" end authenticated :admin, lambda { |admin| admin.active? } do - match "/dashboard/active", :to => "home#admin_dashboard" + get "/dashboard/active", :to => "home#admin_dashboard" end authenticated do - match "/dashboard", :to => "home#user_dashboard" + get "/dashboard", :to => "home#user_dashboard" end unauthenticated do - match "/join", :to => "home#join" + get "/join", :to => "home#join" end # Routes for constraints testing devise_for :headquarters_admin, :class_name => "Admin", :path => "headquarters", :constraints => {:host => /192\.168\.1\.\d\d\d/} @@ -90,11 +90,11 @@ devise_for :deletes, :sign_out_via => :delete, :class_name => "Admin" devise_for :posts, :sign_out_via => :post, :class_name => "Admin" devise_for :delete_or_posts, :sign_out_via => [:delete, :post], :class_name => "Admin" end - match "/set", :to => "home#set" - match "/unauthenticated", :to => "home#unauthenticated" - match "/custom_strategy/new" + get "/set", :to => "home#set" + get "/unauthenticated", :to => "home#unauthenticated" + get "/custom_strategy/new" root :to => "home#index" end