Closed tagliala closed 2 years ago
validate: true
form_with
Works
Crashes
The problem is here:
https://github.com/DavyJonesLocker/client_side_validations/blob/8207046e4d98fa055a20a7f80101e200122fcdd1/lib/client_side_validations/action_view/form_builder.rb#L32-L33
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
Rails version: 7.0
Ruby version: 3.0.3
Client Side Validations version: 20.0.1 / main
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.
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.
Ref: rails/rails#42755
Steps to reproduce*
validate: true
toform_with
tagExpected behavior*
Works
Actual behavior*
Crashes
The problem is here:
https://github.com/DavyJonesLocker/client_side_validations/blob/8207046e4d98fa055a20a7f80101e200122fcdd1/lib/client_side_validations/action_view/form_builder.rb#L32-L33
On localhost, I cannot even add
validate: true
to a basicform_with
and I getwithout a backtrace
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*
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.