Skip to content

Commenting inside a ruby tag in an erb file is broken (comments as HTML) #1774

Description

@adrianthedev

I have this weird case where HERB comments the Ruby inside a Ruby tag as HTML instead of Ruby.

<%
  some_ruby_inside_erb
%>
<%= link_to some_ruby_inside_erb %>
CleanShot.2026-06-04.at.12.04.18.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions