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
When using Erector with Rails, the dependencies are not emitted at all in the head tag.
I'm using Rails 2.3.10 with Erector 0.8.1 on Ruby 1.9.2.
I tracked the problem down to the fact that in Rails context, the widgets are rendered with the output which uses Rails' output buffer, which is a string. Since the buffer is a string, the output.placeholder implementation doesn't work (it works if the buffer is an Array).
I tried initializing Rails view buffer to an empty array and patching Rails TextHelper::concat to work with Arrays, but it seems that Rails internals really don't like anything other than strings for output buffer.
The text was updated successfully, but these errors were encountered:
When using Erector with Rails, the dependencies are not emitted at all in the head tag.
I'm using Rails 2.3.10 with Erector 0.8.1 on Ruby 1.9.2.
I tracked the problem down to the fact that in Rails context, the widgets are rendered with the output which uses Rails' output buffer, which is a string. Since the buffer is a string, the output.placeholder implementation doesn't work (it works if the buffer is an Array).
I tried initializing Rails view buffer to an empty array and patching Rails TextHelper::concat to work with Arrays, but it seems that Rails internals really don't like anything other than strings for output buffer.
The text was updated successfully, but these errors were encountered: