Add interface to create and update user accounts
This commit is contained in:
parent
5c89cf1501
commit
5f3713aecd
11 changed files with 100 additions and 1 deletions
|
@ -1,4 +1,6 @@
|
|||
Rails.application.routes.draw do
|
||||
get 'users/new'
|
||||
get 'users/show'
|
||||
get 'log_in' => 'sessions#new', :as => :log_in
|
||||
match 'log_out' => 'sessions#destroy', :as => :log_out, :via => [:get, :post]
|
||||
resources :sessions, :only => [:new, :create, :destroy]
|
||||
|
@ -15,5 +17,9 @@ Rails.application.routes.draw do
|
|||
end
|
||||
end
|
||||
|
||||
resources :users
|
||||
|
||||
match '/:controller(/:action(/:id))', :via => [:get, :post]
|
||||
match '/users', to: 'users#index', via: 'get'
|
||||
match '/users/:id', to: 'users#show', via: 'get'
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue