开发者

How to load my rails console with spanish

I have set up a my application with spanish and english. On my console i am getting error messages in english if object is returning validation error. I want to set my rails console so i开发者_运维技巧 will get validation error message in spanish.


This should work:

I18n.locale = 'es'
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜