softwareas.com
Rails: Finding Who Called A Partial
So you’re coding a partial and you want to know which template has pulled it in. The magic word is “@first_render”, which will give you something like “homepage/admin”…