11
I am new to haml and this is stumping me. I don't like to delete code where I can comment it out but I have no idea how to properly end a comment in haml.
Here is a code snippit:
.field
= f.label :member_id
%br/
= f.text_field :member_id
.field
= f.label :instrument_type
%br/
I'm trying to comment out the first field so I used:
/
.field
= f.label :member_id
%br/
= f.text_field :member_id
.field
= f.label :instrument_type
%br/
but that commented out everything after the first field.
Then I tried:
/
.field
= f.label :member_id
%br/
= f.text_field :member_id
.field
= f.label :instrument_type
%br/
but it didn't like that either, or:
-#.field
-# = f.label :member_id
-# %br/
-# = f.text_field :member_id
.field
= f.label :instrument_type
%br/
I must be missing something. I looked all over but the examples never show code after the comment.