submit
automatically show i18n message. but no support for disable_with
.
I made the code support disable_with
.
https://github.com/shingo-nakanishi/rails/commit/e0c3ad231e232aaa814c539853a60ea6a8971b6c
(I want to PR this).
I copy almost code for i18n from def submit_default_value
(DRY).
some advice need for DRY(I think the method name change to translate_default_value
etc