From 3c3b4da3136344eeff7936126e484d43d412ae30 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Fri, 5 Aug 2016 09:06:58 -0400 Subject: [PATCH] Update _details.html.erb --- app/views/customers/_details.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/customers/_details.html.erb b/app/views/customers/_details.html.erb index edf5ae4..e3f63e4 100644 --- a/app/views/customers/_details.html.erb +++ b/app/views/customers/_details.html.erb @@ -12,12 +12,12 @@ Primary Phone - <%= customer.primary_phone %> + <%= number_to_phone(customer.primary_phone.gsub(/[^\d]/, '').to_i, area_code: true) %> Mobile Phone - <%= customer.mobile_phone %> + <%= number_to_phone(customer.mobile_phone.gsub(/[^\d]/, '').to_i, area_code: true) %>