cells icon indicating copy to clipboard operation
cells copied to clipboard

Error parse html on producion environment

Open ghost opened this issue 9 years ago • 7 comments

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

ghost avatar Apr 08 '16 12:04 ghost

Similar to https://github.com/apotonick/cells/issues/305, I guess.

apotonick avatar Apr 08 '16 22:04 apotonick

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

apotonick avatar Apr 08 '16 22:04 apotonick

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

ghost avatar Apr 09 '16 12:04 ghost

How did you solve it, I wonder?

apotonick avatar Apr 09 '16 14:04 apotonick

i need change

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

to

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

Nguyenanh avatar Apr 09 '16 16:04 Nguyenanh

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

apotonick avatar Apr 10 '16 02:04 apotonick

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

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

thanks again. :)

Nguyenanh avatar Apr 10 '16 08:04 Nguyenanh