add rails magic to index links