rails access view name inside partial
问题 I have a partial that I am using in different pages. I want to conditionally hide a certain div inside the partial based on the view that is rendering it. I was thinking about creating a page specific javascript file that would look up the div and and hide it. But, if there was a way to retrieve the view name / page name inside the partial it would be central to the partial and would not necessitate loading the same javascript file in multiple pages. Does anybody know a way to do this inside