From d288f192fad21397894b990f88a4eca35534f1fc Mon Sep 17 00:00:00 2001 From: Jonathan Rosenbaum Date: Sun, 26 Dec 2021 21:44:05 -0500 Subject: [PATCH] =?UTF-8?q?Allow=20dots=20in=20conference=20names.=20=20Th?= =?UTF-8?q?is=20wasn't=20an=20accent=20issue.=20Now=20something=20like=20c?= =?UTF-8?q?onferences/Ciudad.de.M=C3=A9xico.22=20works.=20Good=20info=20at?= =?UTF-8?q?=20https://prathamesh.tech/2020/06/15/allowing-dots-in-rails-ro?= =?UTF-8?q?utes/=20.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: 457bfdbc041102e6ce13a629db6dbf417a97f56e --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index 9d8e78b..a5f7f88 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -7,7 +7,7 @@ BikeBike::Application.routes.draw do get 'new' => 'administration#new', as: :new_conference post 'save' => 'administration#save', as: :save_conference - scope ':slug' do + scope ':slug', constraints: { slug: /[^\/]+/ } do root 'conferences#view', as: :conference get 'edit' => 'administration#edit', as: :edit_conference