From 49bc88cd699c32a28615c1be857d776bb7ef8ccf Mon Sep 17 00:00:00 2001 From: Ari Timonen Date: Sun, 22 Mar 2020 19:43:59 +0200 Subject: [PATCH] Fix custom urls --- config/routes.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/config/routes.rb b/config/routes.rb index 6036298..6d15bc7 100755 --- a/config/routes.rb +++ b/config/routes.rb @@ -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'