Merge branch 'master' into cross

This commit is contained in:
Benjamin Myara
2018-09-03 15:19:04 +01:00
committed by GitHub
47 changed files with 700 additions and 614 deletions

View File

@@ -30,7 +30,7 @@ Rails.application.configure do
# config.assets.css_compressor = :sass
# Do not fallback to assets pipeline if a precompiled asset is missed.
config.assets.compile = false
config.assets.compile = true
# `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb

View File

@@ -0,0 +1 @@
DEFAULT_META = YAML.load_file(Rails.root.join("config/meta.yml"))

5
config/meta.yml Normal file
View File

@@ -0,0 +1,5 @@
meta_product_name: "Product Name"
meta_title: "Polyglot - Live translation"
meta_description: "Translate your call live"
meta_image: "phone.jpg" # should exist in `app/assets/images/`
twitter_account: "@EthanFraenkel" # required for Twitter Cards

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, :destroy]
#get '/add_contact', to: 'connections#create'
resources :connections, only: [:create, :destroy]
get '/add_contact', to: 'connections#new', as: :add_contact
end