0

In rails7, I have a form, but I want the error messages to be displayed in another language, I can change the ones in the validations in the model e.g. user.rb, but the language of the message that appears at the top, for example :

"The form contains 8 errors" 

I couldn't find a way to change it. How can I do that?

2
  • 1
    Where does that statement come from? Can you provide the relevant view? Commented Feb 14 at 16:52
  • 2
    At first I though you where talking about the message added by the scaffold generator to _form.html.erb but that is <h2><%= pluralize(users.errors.count, "error") %> prohibited this user from being saved:</h2>. The Rails form helpers do not add any kind of error messages on their own so whatever you're seeing here is not part of the framework. Commented Feb 15 at 0:17

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.