Skip to content

Simple explanation with example of how to show error message with html_safe #1863

@thebravoman

Description

@thebravoman

I would like to show an error message with a link to a guide that explains why this error occurs and what you could do about it. It also must have a link to another resource in the app. It is practically around "this resource is locked because it is also used in that resource '

I am sure that I could spend the time to figure out how to do it, but internet searches for me are useless and LLMs are suggesting all kind of things that do not work with 5.4.0.
I am sure simple_form has figured this out. I understand that these error messages should not be html safe by default because XSS.

What I think would be helpful is for the README to give such an example and to reduce the confusion

I would love to write one on my own, but I have no idea how this is done and what is simple_form idea for doing this.

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions