config/routes.rb in partystreusel-1.2.0 vs config/routes.rb in partystreusel-2.0.0
- old
+ new
@@ -1,6 +1,7 @@
Partystreusel::Engine.routes.draw do
unless Rails.env.production?
- get '/styleguide/:page', to: 'styleguide#show', as: :styleguide, constraints: { page: /[a-zA-Z\-_\/]+/ }
- get '/styleguide', to: 'styleguide#show', page: 'index'
+ get ':page', to: 'styleguide#show', as: :styleguide, constraints: { page: /[a-zA-Z\-_\/]+/ }
+
+ root to: "styleguide#show", page: 'index'
end
end