config/routes.rb in as_user-0.0.2 vs config/routes.rb in as_user-0.0.3
- old
+ new
@@ -1,5 +1,15 @@
AsUser::Engine.routes.draw do
- resources :users
+ resources :users do
+ member do
+ get :edit_password
+ end
+ end
+ resources :sessions, only: [:new, :create, :destroy]
+ match "/signup", to: 'users#new'
+ match "/signin", to: 'sessions#new'
+ match "/signout", to: 'sessions#destroy', via: :delete
+ get "abouts/index" => "abouts#index"
+ root to: "abouts#index"
end