Add support to handle rails default path