Browse Source

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/ .
Jonathan Rosenbaum 3 years ago
parent
commit
457bfdbc04
  1. 2
      config/routes.rb

2
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

Loading…
Cancel
Save