New way to render from ERB? #572
-
I'm trying to upgrade from an old version of Phlex (0.5.3 I believe). I now get this error when trying to render my Phlex component from erb: "must implement :to_partial_path". What's the new way to render? I use: <%= render Students::StatusBadgeComponent.new(program_enrollment:) %> |
Beta Was this translation helpful? Give feedback.
Answered by
joeldrapper
May 2, 2023
Replies: 1 comment
-
The Rails integration was extracted into |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
joeldrapper
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The Rails integration was extracted into
phlex-rails
since0.5.3
. You should use that gem instead. It depends onphlex
, so you can have justphlex-rails
in your Gemfile.