Forum: Ruby on Rails How to comment codes in .rhtml file

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
E5d4db2f53bec777e0d25acbeb3f706e?d=identicon&s=25 Veera Sundaravel (veeraa2003)
on 2007-05-09 09:37
HI everybody

I know how to comment codes in ruby (.rb) file. But can anyone say how
to comment codes in rails file i mean in .rhtml file .

Regards,
Veeraa.
B8873547e864c0f41eb0ccb0f8b18ecf?d=identicon&s=25 Timo Springmann (Guest)
on 2007-05-09 09:59
(Received via mailing list)
Hi,

> I know how to comment codes in ruby (.rb) file. But can anyone say how
> to comment codes in rails file i mean in .rhtml file .

HTML comments:

<!-- I'm a comment -->

Erb-Comments

<%# I'm a comment, too! %>

Regards,
Timo
E5d4db2f53bec777e0d25acbeb3f706e?d=identicon&s=25 Veera Sundaravel (veeraa2003)
on 2007-05-09 10:24
Timo Springmann wrote:
> Hi,
>
>> I know how to comment codes in ruby (.rb) file. But can anyone say how
>> to comment codes in rails file i mean in .rhtml file .
>
> HTML comments:
>
> <!-- I'm a comment -->
>
> Erb-Comments
>
> <%# I'm a comment, too! %>
>
> Regards,
> Timo

Hi Springmann,

Thanks for your kind reply.

Regards,
Veeraa
813f535246722b7bf02aacc9ce818de8?d=identicon&s=25 Bob Showalter (Guest)
on 2007-05-09 14:50
(Received via mailing list)
On 5/9/07, Timo Springmann <t.springmann@linet-services.de> wrote:
> Erb-Comments
>
> <%# I'm a comment, too! %>

Note also that the former will be carried through to the output, while
the latter will not.
This topic is locked and can not be replied to.