convert path option to hash because from rails 4.1 
redirect_to will raise an error when called with 
an parameters hash.