Allow dots in conference names. This wasn't an accent issue. Now something like conferences/Ciudad.de.México.22 works.
Good info at https://prathamesh.tech/2020/06/15/allowing-dots-in-rails-routes/ .
This commit is contained in:
parent
b1dbdadd8c
commit
457bfdbc04
@ -7,7 +7,7 @@ BikeBike::Application.routes.draw do
|
|||||||
get 'new' => 'administration#new', as: :new_conference
|
get 'new' => 'administration#new', as: :new_conference
|
||||||
post 'save' => 'administration#save', as: :save_conference
|
post 'save' => 'administration#save', as: :save_conference
|
||||||
|
|
||||||
scope ':slug' do
|
scope ':slug', constraints: { slug: /[^\/]+/ } do
|
||||||
root 'conferences#view', as: :conference
|
root 'conferences#view', as: :conference
|
||||||
|
|
||||||
get 'edit' => 'administration#edit', as: :edit_conference
|
get 'edit' => 'administration#edit', as: :edit_conference
|
||||||
|
Loading…
x
Reference in New Issue
Block a user