Skip to content

Rails 7.0 issues #869

@tagliala

Description

@tagliala

Steps to reproduce*

  1. Create a new Rails 7 application
  2. Scaffold a model
  3. Add validate: true to form_with tag
  4. Visit new model page
  5. Profit

Expected behavior*

Works

Actual behavior*

Crashes

The problem is here:

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions