From b75b4a837fd462dc5070acbcabec3a8e572fefe1 Mon Sep 17 00:00:00 2001 From: john gravois Date: Sat, 18 Jan 2020 11:51:50 -0800 Subject: [PATCH] ensure that subroutes also display the selected nav --- app/helpers/application_helper.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 2050c84f..5d8fdd31 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -31,7 +31,13 @@ def time_ago_in_words(from_time, include_seconds=false) end def tab_item(label, path) - "
  • #{label}
  • " + if label === 'Home' + "
  • #{label}
  • " + elsif label === 'Visits' + "
  • #{label}
  • " + else + "
  • #{label}
  • " + end end def today_visits_path(params={})