diff --git a/README.de.md b/README.de.md index 969c4c29..50c2e1e5 100644 --- a/README.de.md +++ b/README.de.md @@ -220,9 +220,9 @@ end Routen-Muster können auch mit optionalen Parametern ausgestattet werden: ```ruby -get '/posts.?:format?' do - # passt auf "GET /posts" sowie jegliche Erweiterung - # wie "GET /posts.json", "GET /posts.xml" etc. +get '/posts/:format?' do + # passt auf "GET /posts/" sowie jegliche Erweiterung + # wie "GET /posts/json", "GET /posts/xml" etc. end ``` diff --git a/README.es.md b/README.es.md index d9b52c1b..07b0450f 100644 --- a/README.es.md +++ b/README.es.md @@ -133,9 +133,9 @@ end Los patrones de ruta pueden contener parámetros opcionales: ```ruby -get '/posts.?:formato?' do - # coincide con "GET /posts" y además admite cualquier extensión, por - # ejemplo, "GET /posts.json", "GET /posts.xml", etc. +get '/posts/:formato?' do + # coincide con "GET /posts/" y además admite cualquier extensión, por + # ejemplo, "GET /posts/json", "GET /posts/xml", etc. end ``` diff --git a/README.fr.md b/README.fr.md index bfce56c7..aa9ae976 100644 --- a/README.fr.md +++ b/README.fr.md @@ -226,8 +226,8 @@ end Les routes peuvent aussi comporter des paramètres optionnels : ```ruby -get '/articles.?:format?' do - # répond à "GET /articles" ou avec une extension "GET /articles.json", "GET /articles.xml" etc... +get '/articles/:format?' do + # répond à "GET /articles/" ou avec une extension "GET /articles/json", "GET /articles/xml" etc... end ``` diff --git a/README.ja.md b/README.ja.md index 72292f2c..53efb5b9 100644 --- a/README.ja.md +++ b/README.ja.md @@ -224,8 +224,8 @@ end ルーティングパターンは、オプショナルパラメータを取ることもできます。 ```ruby -get '/posts.?:format?' do - # "GET /posts" と "GET /posts.json", "GET /posts.xml" の拡張子などにマッチ +get '/posts/:format?' do + # "GET /posts/" と "GET /posts/json", "GET /posts/xml" の拡張子などにマッチ end ``` diff --git a/README.ko.md b/README.ko.md index 7daef20f..2935231d 100644 --- a/README.ko.md +++ b/README.ko.md @@ -224,8 +224,8 @@ end 라우터 패턴에는 선택적인(optional) 매개변수도 올 수 있습니다. ```ruby -get '/posts.?:format?' do - # "GET /posts" 는 물론 "GET /posts.json", "GET /posts.xml" 와 같은 어떤 확장자와도 매칭 +get '/posts/:format?' do + # "GET /posts/" 는 물론 "GET /posts/json", "GET /posts/xml" 와 같은 어떤 확장자와도 매칭 end ``` diff --git a/README.md b/README.md index 3437d7f6..b62d2f3e 100644 --- a/README.md +++ b/README.md @@ -225,8 +225,8 @@ end Route patterns may have optional parameters: ```ruby -get '/post/:format?' do - # matches "GET /post/" and any extension "GET /posts/json", "GET /posts/xml" etc +get '/posts/:format?' do + # matches "GET /posts/" and any extension "GET /posts/json", "GET /posts/xml" etc end ``` diff --git a/README.pt-br.md b/README.pt-br.md index 85bfbc06..dd65f8e0 100644 --- a/README.pt-br.md +++ b/README.pt-br.md @@ -197,8 +197,8 @@ end Padrões de rota podem contar com parâmetros opcionais: ```ruby -get '/posts.?:formato?' do - # corresponde a "GET /posts" e qualquer extensão "GET /posts.json", "GET /posts.xml", etc. +get '/posts/:formato?' do + # corresponde a "GET /posts/" e qualquer extensão "GET /posts/json", "GET /posts/xml", etc. end ``` diff --git a/README.ru.md b/README.ru.md index 99888c64..8bf5f765 100644 --- a/README.ru.md +++ b/README.ru.md @@ -225,8 +225,8 @@ end Шаблоны маршрутов могут иметь необязательные параметры: ```ruby -get '/posts.?:format?' do - # соответствует "GET /posts", "GET /posts.json", "GET /posts.xml" и т.д. +get '/posts/:format?' do + # соответствует "GET /posts/", "GET /posts/json", "GET /posts/xml" и т.д. end ``` diff --git a/README.zh.md b/README.zh.md index 3a00bf45..8d342528 100644 --- a/README.zh.md +++ b/README.zh.md @@ -222,8 +222,8 @@ end 路由范式可以包含可选参数: ```ruby -get '/posts.?:format?' do - # 匹配 "GET /posts" 和任意扩展 "GET /posts.json"、"GET /posts.xml" 等 +get '/posts/:format?' do + # 匹配 "GET /posts/" 和任意扩展 "GET /posts/json"、"GET /posts/xml" 等 end ```