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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
bidigo opened this issue Dec 16, 2010 · 0 comments
Open

Dependencies not emitted in Rails #11

bidigo opened this issue Dec 16, 2010 · 0 comments

Comments

@bidigo
Copy link
bidigo commented Dec 16, 2010

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0