Fix custom urls

This commit is contained in:
Ari Timonen 2020-03-22 19:43:59 +02:00
parent 58d7e494cc
commit 49bc88cd69

View file

@ -143,6 +143,7 @@ Ensl::Application.routes.draw do
get "polls/showvotes/:id", to: "polls#showvotes", as: "polls_showvotes"
get "custom_urls", to: "custom_urls#administrate"
get ":name", to: "custom_urls#show", requirements: {name: /\A[a-z\-]{2,10}\Z/}
get ':controller/:action', requirements: { action: /A-Za-z/ }
get ':controller/:action/:id'