Am a newbie to rails , please let me know the way to comment out a single line and also to comment out a block of lines in *.html.erb files.
+2
A:
ruby on rails notes has a very nice blogpost about commenting in erb-files
the short version is
to comment a single line use
<%-# commented line -%>
to comment a whole block use a if false
to surrond your code like this
<% if false %>
code to comment
<% end %>
Nikolaus Gradwohl
2010-10-10 18:43:30