prep 3.0.8
correctly handle passing resources into relative link_to