convert path option to hash

 because from rails 4.1 redirect_to will raise an error when called with  an parameters hash.

Shall I provide a test for that? If yes in what way?