Skip to content

Instantly share code, notes, and snippets.

@hpjaj
Created November 14, 2018 15:10
Show Gist options
  • Select an option

  • Save hpjaj/27edf37cc3637cd8a220ba7d374b874e to your computer and use it in GitHub Desktop.

Select an option

Save hpjaj/27edf37cc3637cd8a220ba7d374b874e to your computer and use it in GitHub Desktop.
# config/routes.rb
Rails.application.routes.draw do
root 'pages#index'
# IMPORTANT #
# This `match` must be the *last* route in routes.rb
match '*path', to: 'pages#index', via: :all
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment