only use redirect options in ruby 1.9 and greater. Avoid unsupported syntax in 1.8