开发者

Use i18n internationalization and Custom Routes

开发者 https://www.devze.com 2023-02-28 10:22 出处:网络
I want use i18n internationalization. CRUD its works fine, but with custom routes something wrong. How can I use :local in custum routes like this:

I want use i18n internationalization. CRUD its works fine, but with custom routes something wrong. How can I use :local in custum routes like this:

match 'signup' => 'newsletter#signup'

if I use /en/signup it is works, but 开发者_运维技巧/signup says: no route match


Why don't you try to use the i18n_routing gem?

https://github.com/kwi/i18n_routing

It's easy to translate also the name of the action.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号