Open up config.ru
from the root directory and update the sinatra not_found
route to the following:
1 2 3 |
|
This will redirect to http://yourdomain.com/404/
where the page is found, but we still need to create a page.
To do this use rake new_page[404]
. This will create a new file named index.markdown
in your /source/404
directory:
1 2 3 4 5 6 7 8 9 10 |
|
View my 404 page here.