You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The yield_content was removed here in favor of render. But using render with blocks is breaking with ArgumentError: 'nil' is not an ActiveModel-compatible object. It must implement #to_partial_path..
To reproduce the error:
classHello < Phlex::HTMLdefview_template(&)plain"Hello "render(&)endendHello.new.call{"World"}# or rendering inside another componentclassPage < Phlex::HTMLdefview_templaterenderHello.newdospan{"World"}endendend
I will open a PR with a failing test.
The text was updated successfully, but these errors were encountered:
stephannv
changed the title
Problem rendering blocks
Problem when rendering blocks
Oct 15, 2024
The
yield_content
was removed here in favor ofrender
. But usingrender
with blocks is breaking withArgumentError: 'nil' is not an ActiveModel-compatible object. It must implement #to_partial_path.
.To reproduce the error:
I will open a PR with a failing test.
The text was updated successfully, but these errors were encountered: