Skip to content

undefined method `to_hash' for an instance of String (haml-rails version 2.1.0) #194

@hzhangatswann

Description

@hzhangatswann

We have been using haml-rails 2.0.1. recently we tried to upgrade to version 2.1.0. but it raised this error straight away:

undefined method `to_hash' for an instance of String

in this statement
Haml::Engine.new(IO.read("/path/to/example.xml.haml")).render(self)

our environment:
rails 7.1
ruby 3.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions