ERB Processing Question


#1

When I’m coding my view, I like to comment out blocks of code while
testing and fiddling.

I’ve found that .rhtml / ERB doesn’t use as a block
comment, it does translate it when viewed as html, however.

Is there a way to comment out blocks of code in ERB so that it doesn’t
get processed?

Thanks,

Matt


#2

matt wrote:

Thanks,

Matt

<%# … %>

Cheers
Mohit


#3

But this won’t work if there is embedded Ruby…

It won’t know where to end.

It would need an #%> to find the end of the block

Matt