Skip to content
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

segmentation fault when rendering a partial #5

Closed
dcu opened this issue Aug 17, 2011 · 2 comments
Closed

segmentation fault when rendering a partial #5

dcu opened this issue Aug 17, 2011 · 2 comments

Comments

@dcu
Copy link
Contributor

dcu commented Aug 17, 2011

I am rendering a haml partial inside a Poirot::View subclass, something like this

class IndexView
    def add_something
        render :partial  => "path/to/haml/partial"
    end
 end

the rails process crashes with SEG FAULT in the "render :partial" line

@dcu
Copy link
Contributor Author

dcu commented Aug 17, 2011

this seems to fix the issue:

view_context.render :partial => "path/to/partial"

@olivernn
Copy link
Owner

To be honest I haven't tried rendering another partial of a different template type from within a Poirot view.

Methods such as render are part of the view context, which I guess you have figured out by explicitly calling render on the view_context, if this is working for you I'm tempted to close this issue.

@olivernn olivernn closed this as completed Jan 4, 2012
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

2 participants