I am trying to add a condition so a “back” button does not appear if
the user arrived at the current page directly from a link offsite
(eg., a link from a tweet). I do want the button to appear if the user
arrived at the page from another page on our site:
From what I have read this seems like where I would use
url_options(ActionView::Helpers::URLHelper. The code below does not
work and I am uncertain why. Am I barking up the right tree or not
even in the ballpark?