Can I comment out blocks of code in rhtml (eRuby right?) Not just html comments because it''ll still execute whats inside, and not single lines like <%# do_somthing %> either
Francisco Hernandez wrote:> Can I comment out blocks of code in rhtml (eRuby right?) > > Not just html comments because it''ll still execute whats inside, and not > single lines like <%# do_somthing %> eitherUnfortunately the =begin ... =end syntax does not seem to work in ERb. I guess the closest thing you can do is using if false then ... end which will however still complain about syntax errors.