serve dynamic content to ads - built on rails 3.2.13