I'm pretty new to Ruby. I have a situation where I'm dealing with dashboard. I have 3 types of metrics (ex- 1,2,3) present in the dashboard where the code for three different metrics are present in 3 different files. Now, I want to write an if statement where the condition should be similar to the following...
<% if person=x %>
Do not access the file which has metric 2 / the filename
<%end%>
How can I write " Do not access the file which has metric 2 / the filename " in code format?
However I want the rest other files 1 &3 to be accessed by person=x. Any leads would be helpful. Thank you!
P.S - All the files are in .html.erb format