Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error message are not humanized #505

Closed
ionosphere opened this issue Mar 15, 2016 · 1 comment
Closed

Error message are not humanized #505

ionosphere opened this issue Mar 15, 2016 · 1 comment

Comments

@ionosphere
Copy link
Member

Is it possible to have the validation error message in a human response.

Not

#<ActiveModel::Errors:0x0055a818e74198 @base=#<Intervention id: nil, issue_id: nil, prescription_id: nil, procedure_name: "fertilizing", state: "undone", started_at: nil, stopped_at: nil, created_at: nil, updated_at: nil, creator_id: nil, updater_id: nil, lock_version: 0, event_id: nil, number: "2", description: "", working_duration: 0, whole_duration: 0, actions: [:fertilization], custom_fields: nil>, @messages={:"inputs.quantity_population"=>["Quantité population ne peut pas être vide"]}> 

But just

"Quantité population ne peut pas être vide" in a red background like in the other view.

screenshot at 2016-03-15 16 32 32

@Nyxelio
Copy link
Contributor

Nyxelio commented Mar 16, 2016

ActiveModel::Errors are only displayed on development environment

@burisu burisu closed this as completed Mar 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants