diff --git a/app/models/contact.rb b/app/models/contact.rb index ea4833f..0e46082 100755 --- a/app/models/contact.rb +++ b/app/models/contact.rb @@ -3,6 +3,6 @@ class Contact < ActiveRecord::Base validates :name, :presence => true validates :email, :presence => true, :format => /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\Z/i validates :message, :presence => true - validates :tel, :presence => true + end diff --git a/app/views/public/contacts/_thank.html.haml b/app/views/public/contacts/_thank.html.haml index fbdfe2a..7a9f6ce 100755 --- a/app/views/public/contacts/_thank.html.haml +++ b/app/views/public/contacts/_thank.html.haml @@ -1,2 +1,3 @@ +%div{:style => "text-align:cencer;"} %h3 Merci pour votre message %p Nous vous remercions pour votre message et vous répondrons dans les meilleurs délais. \ No newline at end of file diff --git a/config/nginx.conf b/config/nginx.conf index 51efe88..abbd318 100755 --- a/config/nginx.conf +++ b/config/nginx.conf @@ -4,7 +4,7 @@ upstream idn_app_unicorn { server { listen 80; - server_name idn.quartz.xyz; + server_name idn.quartz.xyz idncommunication.com; root /home/web/idn_app/current/public; try_files $uri/index.html $uri @unicorn; @@ -22,8 +22,8 @@ server { server { listen 80; - server_name www.idn.quartz.xyz; - rewrite ^(.*) http://idn.quartz.xyz permanent; + server_name www.idncommunication.com; + rewrite ^(.*) http://idncommunication.com permanent; }