# REXML::Comment:Class

**URL:** <https://www.ruby-forum.com/t/rexml-class/124785>\
**Category:** Rails\
**Created:** [January 2, 2008, 5:24pm UTC](https://www.ruby-forum.com/t/rexml-class/124785 "2008-01-02T17:24:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![snantz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c2a13f/32.png) [@snantz](https://www.ruby-forum.com/u/snantz)\
**Post date:** [January 2, 2008, 5:24pm UTC](https://www.ruby-forum.com/t/rexml-class/124785/1 "2008-01-02T17:24:02Z")

</div>

I have this field in my app where a logged in user can enter a comment,  
but when I click on the link bringing me to that page I get the  
following error message:

undefined method `table\_name’ for REXML::Comment:Class

I am doing some encrypting that has an ‘include REXML’ statement but  
when I comment that out I still get this error. Does anyone know where  
this is coming from? I do have a table named commnts which I’m thinking  
is somehow related since it is in this page where a comment entry is  
placed into the table. Thanks,

-S

---

<div class="post-metadata">

**Author:** ![snantz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c2a13f/32.png) [@snantz](https://www.ruby-forum.com/u/snantz)\
**Post date:** [January 2, 2008, 5:48pm UTC](https://www.ruby-forum.com/t/rexml-class/124785/2 "2008-01-02T17:48:38Z")

</div>

On 2 Jan 2008, at 16:24, Shandy N. wrote:

> this is coming from? I do have a table named commnts which I’m  
> thinking  
> is somehow related since it is in this page where a comment entry is  
> placed into the table. Thanks,

is your ‘include REXML’ making ruby/rails confused about whether  
Comment means your comment class or REXML::Comment ?

Fred

---

<div class="post-metadata">

**Author:** ![snantz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c2a13f/32.png) [@snantz](https://www.ruby-forum.com/u/snantz)\
**Post date:** [January 2, 2008, 5:52pm UTC](https://www.ruby-forum.com/t/rexml-class/124785/3 "2008-01-02T17:52:13Z")

</div>

Frederick C. wrote:

> On 2 Jan 2008, at 16:24, Shandy N. wrote:
> 
> > this is coming from? I do have a table named commnts which I’m  
> > thinking  
> > is somehow related since it is in this page where a comment entry is  
> > placed into the table. Thanks,
> 
> is your ‘include REXML’ making ruby/rails confused about whether  
> Comment means your comment class or REXML::Comment ?
> 
> Fred

Not sure? But I have commented out that include statement and I still  
get the error.

---

<div class="post-metadata">

**Author:** ![snantz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c2a13f/32.png) [@snantz](https://www.ruby-forum.com/u/snantz)\
**Post date:** [January 2, 2008, 9:17pm UTC](https://www.ruby-forum.com/t/rexml-class/124785/4 "2008-01-02T21:17:20Z")

</div>

I solved it. For an odd reason, when I commented out the include  
statement I also had to stop and then restart the server before it took  
effect. Once I did that it all works again.
