Commit
…template recompiling in production [#1909 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
- Loading branch information
There are no files selected for viewing
7 comments
on commit 893e9eb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit gave me a lot of headache, since Haml templates stopped working. The issue is that the haml plugin or gem is only initialized after the the templates are processed so ActionView will not know about the available template handler until it’s too late. I guess this would be true for other template handlers in plugin or gem form too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirming that Haml is no longer working after this commit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it work with this patch?
http://rails.lighthouseapp.com/attachments/87152/local_assigns_and_template_handlers.diff
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice if someone fixed this quickly :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My views don’t reload at all in development after this update…
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
views reloading in dev mode broke
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we’ve finally got it fix. Sorry about that.
Please test it again.
This change is causing issues for me with files in the public path, like my 401 error page. Specifically, it seems to be appending “./” onto the path when it shouldn’t, and I get an error when trying to load “./c:/rails_apps/my_app/public/401.html”