So I have a program where a user can create events, and there will be multiple events. So the events index page looks like "/events" on the browser, and it's subdirectory show pages looks like "/events/1 /events/2 ... etc".
In my layout page I am checking the current page in order to decide what background color the page will have. This is easy for the events index page; I just check if it is that page via the command:
if current_page?(events_path) ...
But I want to check if the current page is a specific 'show' page of the index (a standard scaffold generated page). How would I do that? This is my attempt, I am confused about how the routing would work in this case:
if current_page?(events_id_path) ...