From 1bd6d456aba98121b2129710f4dc6703285a9882 Mon Sep 17 00:00:00 2001 From: bilal Date: Wed, 10 Jun 2020 14:43:31 +0200 Subject: [PATCH] set US as default country in country dropdown --- app/views/shared/_address_fields.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/shared/_address_fields.html.erb b/app/views/shared/_address_fields.html.erb index 56c08ee..6346517 100644 --- a/app/views/shared/_address_fields.html.erb +++ b/app/views/shared/_address_fields.html.erb @@ -11,6 +11,6 @@ <%= form.form_group "#{field_name_prefix}address_country" do %> <%= form.label "#{field_name_prefix}address_country" %> - <%= form.country_select "#{field_name_prefix}address_country", { priority: %w(US CA), prompt: true }, class: "form-control custom-select" %> + <%= form.country_select "#{field_name_prefix}address_country", { selected: 'US', priority: %w(US CA), prompt: true }, class: "form-control custom-select" %> <% end %>