made settings page responsive and edited route from connections/new to add_contact

This commit is contained in:
Beatrice Olivera
2018-09-02 00:47:41 +01:00
parent 6a1992a29f
commit da9e799436
10 changed files with 110 additions and 62 deletions

View File

@@ -36,12 +36,11 @@ Rails.application.routes.draw do
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
get '/home', to: 'pages#home'
get '/users/:id', to: 'users#show', as: :user
get '/users/:id/edit', to: 'users#edit', as: :user_edit
patch '/users/:id', to: 'users#update'
delete '/users/:id', to: 'users#destroy'
resources :connections, only: [:create, :new]
#get '/add_contact', to: 'connections#create'
resources :connections, only: [:create]
get '/add_contact', to: 'connections#new', as: :add_contact
end