# Magic Comments and Actual Comment

**URL:** <https://www.ruby-forum.com/t/magic-comments-and-actual-comment/147210>\
**Category:** Rails\
**Created:** [August 29, 2008, 12:25pm UTC](https://www.ruby-forum.com/t/magic-comments-and-actual-comment/147210 "2008-08-29T12:25:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hunt\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b9e5f3/32.png) [@Hunt\_J](https://www.ruby-forum.com/u/Hunt_J)\
**Post date:** [August 29, 2008, 12:25pm UTC](https://www.ruby-forum.com/t/magic-comments-and-actual-comment/147210/1 "2008-08-29T12:25:39Z")

</div>

I’m trying to be ready with ruby 1.9. That doesn’t work with the  
current version of rails, though.

If I write:

# -_- coding: utf-8 -_-

# Controller for dealing with users

class UserController \< ApplicationController

# do something

end

Then, when I generated rdoc with a rake task, I get the magic comment  
in every documentation part.

To avoid the problem, I can make a blank line inserted.

# -_- coding: utf-8 -_-

# Controller for dealing with users

class UserController \< ApplicationController

# do something

end

What would you do with this? Nothing is harmful if you start to add a  
magic comment.

-J
