url_for monkey patch for rails 4.1.2+