Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
React-router-url (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt-Butler authored Jun 21, 2017
1 parent 46070b4 commit 93118d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
Rails.application.routes.draw do
root to: 'home#index'
get 'home/index'

# React Router needs a wildcard https://github.com/shakacode/react-webpack-rails-tutorial/blob/master/config/routes.rb#L12
get "components(/*all)", to: "home#index"
end

0 comments on commit 93118d7

Please sign in to comment.