user management

This commit is contained in:
2015-10-20 21:49:59 -05:00
parent c204389103
commit 41ceccc5b5
17 changed files with 158 additions and 49 deletions

View File

@ -1,29 +1,32 @@
Rails.application.routes.draw do
post 'oauth/callback', to: 'oauths#callback'
get 'oauth/callback', to: 'oauths#callback'
get 'oauth/:provider', to: 'oauths#oauth', as: :auth_at_provider
post 'oauth/callback', to: 'oauths#callback'
get 'oauth/callback', to: 'oauths#callback'
get 'oauth/:provider', to: 'oauths#oauth', as: :auth_at_provider
get 'parents', to: 'parents#index', as: :list_parents
get 'parent/new', to: 'parents#new', as: :new_parent
post 'parent/new', to: 'parents#add', as: :add_parent
get 'parent/edit/:id', to: 'parents#edit', as: :edit_parent
get 'parent/:id', to: 'parents#show', as: :parent
patch 'parent/:id', to: 'parents#update', as: :update_parent
get 'parents', to: 'parents#index', as: :list_parents
get 'parent/new', to: 'parents#new', as: :new_parent
post 'parent/new', to: 'parents#add', as: :add_parent
get 'parent/edit/:id', to: 'parents#edit', as: :edit_parent
get 'parent/:id', to: 'parents#show', as: :parent
patch 'parent/:id', to: 'parents#update', as: :update_parent
post 'parenthood/child/:child', to: 'relationships#add_child', as: :add_parent_to_child
post 'parenthood/:parent/', to: 'relationships#add_child', as: :add_parenthood
post 'parenthood/child/:child', to: 'relationships#add_child', as: :add_parent_to_child
post 'parenthood/:parent/', to: 'relationships#add_child', as: :add_parenthood
delete 'parenthood/:parent/:child', to: 'relationships#del_child', as: :del_parenthood
get 'children', to: 'children#index', as: :list_children
get 'child/new', to: 'children#new', as: :new_child
post 'child/new', to: 'children#add', as: :add_child
get 'childdit/:id', to: 'children#edit', as: :edit_child
get 'child/:id', to: 'children#show', as: :child
patch 'child/:id', to: 'children#update', as: :update_child
get 'children', to: 'children#index', as: :list_children
get 'child/new', to: 'children#new', as: :new_child
post 'child/new', to: 'children#add', as: :add_child
get 'child/edit/:id', to: 'children#edit', as: :edit_child
get 'child/:id', to: 'children#show', as: :child
patch 'child/:id', to: 'children#update', as: :update_child
get 'staff', to: 'staff#index', as: :list_staff
get 'users', to: 'users#index', as: :list_users
get 'users', to: 'users#index', as: :list_users
get 'user/new', to: 'users#new', as: :new_user
post 'user/new', to: 'users#register', as: :add_user
get 'user/edit/:id', to: 'users#edit', as: :edit_user
get 'user/:id', to: 'users#show', as: :user
patch 'user/edit/:id', to: 'users#update', as: :update_user
get 'pages', to: 'pages#index', as: :list_pages
get 'page/(:id)', to: 'pages#page', as: :page_person