How to not display / hide a particular content in a URL?

Viewed 22

Is it possible in ruby to specify parameters to URLs? I have a URL

<%= a_link url: group.metrics_link, link_type:'emphasis' do %>

I have three metrics in this particular URL namely metric 1 ,metric 2, metric 3. I want to not display metric 2 to a specific user through a caveat if statement. So, all the three metrics have code in - metric1.hetml.erb , metric2.hetml.erb ,metric3.hetml.erb . I don't want the URL showcase metric2 / probably skip accessing metric2.html.erb. Is it possible ? So, I'm basically looking for a condition.

0 Answers
Related