From 768f89eecf7b6d49c7f059f4f83b1825528e5ea3 Mon Sep 17 00:00:00 2001 From: "Jesse C. Fisher" Date: Tue, 21 Nov 2023 09:32:24 +0000 Subject: [PATCH] Improve public home routes --- app/views/layouts/_navigation_links.html.erb | 2 +- config/routes.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/layouts/_navigation_links.html.erb b/app/views/layouts/_navigation_links.html.erb index 2718d669..80210a40 100644 --- a/app/views/layouts/_navigation_links.html.erb +++ b/app/views/layouts/_navigation_links.html.erb @@ -3,7 +3,7 @@ <% if current_user.signed_in? %>
  • <%= link_to 'My Tendy Zone', root_path, class: "home-link", data: { turbo: false } %>
  • <% end %> -
  • <%= link_to 'Public', visitors_path, data: { turbo: false } %>
  • +
  • <%= link_to 'Public', '/public', data: { turbo: false } %>
  • <%= link_to 'Tokens', tokens_path %>
  • <%= link_to 'Profiles', profiles_path %>
  • <%= link_to 'Projects', projects_path %>
  • diff --git a/config/routes.rb b/config/routes.rb index 32efc7a2..6d4066d7 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -93,5 +93,6 @@ Rails.application.routes.draw do end end root to: 'visitors#index' + get '/public', to: "visitors#index" end