Skip to content

Instantly share code, notes, and snippets.

@jimneath
Created June 20, 2011 11:52
Show Gist options
  • Save jimneath/1035491 to your computer and use it in GitHub Desktop.
Save jimneath/1035491 to your computer and use it in GitHub Desktop.
# catch all for 404
match '*path', :to => proc {
html = File.read(Rails.root.join('public/404.html'))
[404, {}, [html]]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment