-
Notifications
You must be signed in to change notification settings - Fork 397
Rails 7.0 issues #869
Copy link
Copy link
Closed
Labels
Milestone
Description
Steps to reproduce*
- Create a new Rails 7 application
- Scaffold a model
- Add
validate: truetoform_withtag - Visit new model page
- Profit
Expected behavior*
Works
Actual behavior*
Crashes
The problem is here:
client_side_validations/lib/client_side_validations/action_view/form_builder.rb
Lines 32 to 33 in 8207046
| input_tag: form_helper.class.field_error_proc.call(%(<span id="input_tag"></span>), Struct.new(:error_message, :tag_id).new([], '')), | |
| label_tag: form_helper.class.field_error_proc.call(%(<label id="label_tag"></label>), Struct.new(:error_message, :tag_id).new([], '')) |
On localhost, I cannot even add validate: true to a basic form_with and I get
undefined method `content_tag' for ActionView::Base:Class
without a backtrace
undefined method `content_tag' for ActionView::Base:Class
Did you mean? const_get
System configuration*
Rails version: 7.0
Ruby version: 3.0.3
Client Side Validations version: 20.0.1 / main
Code snippet from your model of the validations*
The whole form code from your template*
The resulting HTML*
Browser's development console output*
- I confirm that my browser's development console output does not contain errors
Additional JavaScript Libraries*
If your issue depends on other JavaScript libraries, please list them here. E.g: Bootstrap Modal v3.3.7, jQuery UI Datepicker 1.12.4.
Repository demostrating the issue
Debugging CSV issues is a time consuming task. If you want to speed up things, please
provide a link to a repository showing the issue.
* Failure to include this requirement may result in the issue being closed.
Reactions are currently unavailable