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,
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 ?
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.
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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.