rails handles the page directory path