Questions tagged [field-with-errors]
7 questions
136
votes
15 answers
Rails 3: "field-with-errors" wrapper changes the page appearance. How to avoid this?
Email field:
looks like this:
But, if the email validation fails, it becomes:
6
votes
5 answers
Rails validation and 'fieldWithErrors' wrapping select tags
Is it normal behaviour to not get the
wrapped arround select tags that have validation errors? I personally see no reason why the select tags should be treated differently than other form tags (input, textarea).
I do…

andi
- 14,322
- 9
- 47
- 46
5
votes
1 answer
Can “field-with-errors” be attached to the parent of the input tag that raises the error?
So I have an input element like this. The wrapping element is about, you know, a visual thing.
When the contains the error, it'll be like this:

beatak
- 9,185
- 10
- 33
- 42
3
votes
1 answer
Rails 3: Why the field with error is not wrapped with "field_with_errors" div when validation fails?
My Product class has price field, which has an appropriate column in Products table in the database, and new_shop helper field (which is defined as attr_accessor, and does not has an appropriate column in Products table in the database).
When…

Misha Moroshko
- 166,356
- 226
- 505
- 746
2
votes
1 answer
field_with_error not triggering Tailwind CSS style
In a Rails 7 app with Tailwind CSS installed, I am using this form:
<%= form_with(model: project) do |f| %>
<%= f.label :name, class: "some_tailwind_css_class" %>
<%= f.text_field :name, autofocus:true, class: "some_other_tailwind_css_class"…

newtoncolbert
- 45
- 6
2
votes
3 answers
ruby on rails and bootstrap , make field_with_errors display horizontal
in custom.css.scss file
.field_with_errors {
@extend .control-group;
@extend .error;
}
and the html.erb
<%= form_for @timecard , url:{action: "savecard"},html:{class: "form-inline"} do |f| %>
<%= f.label :"Date"%>
<%=…

choury
- 75
- 1
- 7
1
vote
2 answers
Crystal Reports displays #### in numeric fields after upgrade
I upgraded a Visual Studio solution containing Crystal Report files. Since the upgrade, the reports are displaying cross hatches (also called number signs: #####) when fields are too narrow to display their values. It was not doing that before. Is…

Jean-François Beauchamp
- 5,485
- 8
- 43
- 77