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/ .


Former-commit-id: 457bfdbc04
master
Jonathan Rosenbaum 3 years ago
parent
commit
d288f192fa
  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 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…
Cancel
Save