8000 Dependencies not emitted in Rails · Issue #11 · erector/erector · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Dependencies not emitted in Rails #11
Open
@bidigo

Description

@bidigo

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.

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

      0