A
A
Anton Misyagin2018-07-05 14:09:33
Ruby on Rails
Anton Misyagin, 2018-07-05 14:09:33

How to prevent comments from being rendered from views to users' browsers on Rails?

haml installed. I want to comment out a piece of the program in the view, this piece pops up in the user's browser as a comment. Absolutely unnecessary thing. I don't want it to be like this for security reasons. How to set up this feature?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
blackst0ne, 2018-07-05
@sunnmas

-# тут код

Сергей, 2018-07-05
@yefrem

Можно писать комменты в руби-коде, в блоке #{}
Но вообще иметь большие закомментированные блоки в коде - bad practice, при желании удаленный код достается из VCS.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question