Skip to content

Output out of order when yielding from a partial rendered by Phlex #592

Answered by joeldrapper
adamlogic asked this question in Help
Discussion options

You must be logged in to vote

Okay, I’ve got a fix here using capture to render the block into a string while in Phlex context before passing it down to another Rails renderable. phlex-ruby/phlex-rails#113

You should be able test it by setting this in your Gemfile:

gem "phlex-rails", git: "https://github.com/phlex-ruby/phlex-rails.git"

Do you mind if I use your example code as a test case?

Replies: 2 comments 25 replies

Comment options

You must be logged in to vote
4 replies
@joeldrapper
Comment options

@joeldrapper
Comment options

Answer selected by joeldrapper
@joeldrapper
Comment options

@adamlogic
Comment options

Comment options

You must be logged in to vote
21 replies
@mhenrixon
Comment options

@mhenrixon
Comment options

@mhenrixon
Comment options

@joeldrapper
Comment options

@mhenrixon
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants