Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails: if validation fail, shows error "I18n::InvalidLocaleData - can not load translations from simple_form.en.yml"

I just uninstall simple_form

gem uninstall simple_form 

and remove simple_form in Gemfile/related files like simple_form.en.yml.

Now if my app validation fails, below error occurs:

I18n::InvalidLocaleData - can not load translations from
.../config/locales/simple_form.en.yml: #<Errno::ENOENT: 
No such file or directory @ rb_sysopen - .../config/locales/simple_form.en.yml>:

I didn't setup any i18n before, is there any simple_form related settings I have to modify as well?

Any ideas are appreciated!

like image 602
Disco26 Avatar asked Aug 14 '14 05:08

Disco26


1 Answers

It's spring caching the locale files. Do spring stop to fix the problem.

like image 161
Ammar Alammar Avatar answered Oct 01 '22 19:10

Ammar Alammar