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

Error parse html on producion environment #388

Open
ghost opened this issue Apr 8, 2016 · 7 comments
Open

Error parse html on producion environment #388

ghost opened this issue Apr 8, 2016 · 7 comments

Comments

@ghost
Copy link

ghost commented Apr 8, 2016

Hi.
i using rails 4.5, cell 4.0 and cell-slim,

#show.slim
p asdasds

but when i run app with production environment, browser display <p>asdasds</p>.
it run good on development environment

@apotonick
Copy link
Member

Similar to #305, I guess.

@apotonick
Copy link
Member

It would be interesting to see if that only happens in Rails, or if Slim and Cells also muck around in an isolated environment.

@ghost
Copy link
Author

ghost commented Apr 9, 2016

@apotonick
Nice. problem was be resolved. thank for support.

@apotonick
Copy link
Member

How did you solve it, I wonder?

@Nguyenanh
Copy link

i need change

#_header.html.slim
= cell(:popup_info) 

to

#_header.html.slim
= cell(:popup_info).to_s.html_safe

@apotonick
Copy link
Member

But that should be done automatically in rails.rb! https://github.com/apotonick/cells/blob/84cce1c2c62dc690190f31cb36504fda41287272/lib/cell/rails.rb#L54

@Nguyenanh
Copy link

@apotonick
oh. I'm Stupid.
I changed it

#_header.html.slim
 = cell(:popup_info).()

thanks again. :)

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