Add dotenv - Protect my secret data in .env file

This commit is contained in:
Benjamin Myara
2018-08-29 14:53:39 +01:00
parent dfb53b89b0
commit 6dee298b44
18 changed files with 240 additions and 2 deletions

View File

@@ -21,4 +21,10 @@ Rails.application.routes.draw do
mount ActionCable.server, at: '/cable'
# 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'
end