diff --git a/app/views/customers/alphabetized.html.erb b/app/views/customers/alphabetized.html.erb index dc02535..27e88ce 100644 --- a/app/views/customers/alphabetized.html.erb +++ b/app/views/customers/alphabetized.html.erb @@ -1,2 +1,18 @@ -

Customers#alphabetized

-

Find me in app/views/customers/alphabetized.html.erb

+
+
+

Customers (Alphabetized)

+ +
+ <%= link_to "View All", root_path, class: "button is-info" %> + <%= link_to "View Missing Email", customers_missing_email_path, class: "button is-warning" %> +
+ +
+ <% @customers.each do |customer| %> +
+ <%= render customer %> +
+ <% end %> +
+
+
\ No newline at end of file diff --git a/app/views/customers/index.html.erb b/app/views/customers/index.html.erb index 2aa04b9..4895b61 100644 --- a/app/views/customers/index.html.erb +++ b/app/views/customers/index.html.erb @@ -1,2 +1,18 @@ -

Customers#index

-

Find me in app/views/customers/index.html.erb

+
+
+

All Customers

+ +
+ <%= link_to "View Alphabetized", customers_alphabetized_path, class: "button is-info" %> + <%= link_to "View Missing Email", customers_missing_email_path, class: "button is-warning" %> +
+ +
+ <% @customers.each do |customer| %> +
+ <%= render customer %> +
+ <% end %> +
+
+
\ No newline at end of file diff --git a/app/views/customers/missing_email.html.erb b/app/views/customers/missing_email.html.erb index d7a610d..69ca947 100644 --- a/app/views/customers/missing_email.html.erb +++ b/app/views/customers/missing_email.html.erb @@ -1,2 +1,18 @@ -

Customers#missing_email

-

Find me in app/views/customers/missing_email.html.erb

+
+
+

Customers Missing Email

+ +
+ <%= link_to "View All", root_path, class: "button is-info" %> + <%= link_to "View Alphabetized", customers_alphabetized_path, class: "button is-info" %> +
+ +
+ <% @customers.each do |customer| %> +
+ <%= render customer %> +
+ <% end %> +
+
+
\ No newline at end of file diff --git a/config/routes.rb b/config/routes.rb index e013186..4d34964 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,7 +1,7 @@ Rails.application.routes.draw do get "customers/index" - get "customers/alphabetized" - get "customers/missing_email" + get 'customers/alphabetized', to: 'customers#alphabetized' + get 'customers/missing_email', to: 'customers#missing_email' devise_for :admin_users, ActiveAdmin::Devise.config ActiveAdmin.routes(self) # Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html