diff --git a/config/routes/group.rb b/config/routes/group.rb index 33143f0dfa246db98010c1fd5473d8c830910c7b..06b464d79c8760910581d0fce14a2639b48b5ba3 100644 --- a/config/routes/group.rb +++ b/config/routes/group.rb @@ -1,7 +1,10 @@ require 'constraints/group_url_constrainer' constraints(GroupUrlConstrainer.new) do - scope(path: ':id', as: :group, controller: :groups) do + scope(path: ':id', + as: :group, + constraints: { id: /[a-zA-Z.0-9_\-]+(?