开发者

Use i18n internationalization and Custom Routes

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜