5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 12:31:42 +00:00

soportar más idiomas

This commit is contained in:
f 2022-03-02 13:56:19 -03:00
parent 36cf199548
commit b54a8280a5

View file

@ -57,7 +57,7 @@ Rails.application.routes.draw do
# Gestionar artículos según idioma
nested do
scope '/(:locale)', constraint: /[a-z]{2}/ do
scope '/(:locale)', constraint: /[a-z]{2}(-[A-Z]{2})?/ do
post :'posts/reorder', to: 'posts#reorder'
resources :posts do
get 'p/:page', action: :index, on: :collection