DEV Community

Alex Cosmas
Alex Cosmas

Posted on

How do I comment out (multiline) in Rails?

Easiest way out is to use <-- --> to comment out your code as show below.
<!-- %= link_to "Make default", make_default_admin_state_path(state) % -->

Example

Image description

Learn more from this link.
https://stackoverflow.com/questions/8514946/how-do-i-comment-out-erb-in-rails

Top comments (0)