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?
a bit nicer would be to do  `path = params.to_h.compact` a bit more up. that would create a new object as well