Tag class being overridden by YAML's Tag class

I wrote a plugin which uses rubyful_soup. Everything works fine at
first,
but after a while the Tag class is no longer the Typo ActiveRecord class
but
the YAML Tag class.

Has anyone else seen this problem?

Any solution other than changing the name of one of the classes?

This is the error I see:
Processing XmlController#feed (for 68.55.36.237 at 2006-07-28 21:27:52)
[GET]
Parameters: {“format”=>“rss20”, “action”=>“feed”, “type”=>“feed”,
“controller”=>“xml”}
Rendering xml/rss20_feed

ActionView::TemplateError (undefined method `table_name’ for Tag:Class)
on
line #19 of app/views/xml/_rss20_item_article.rxml:
16: for category in item.categories
17: xm.category category.name
18: end
19: for tag in item.tags
20: xm.category tag.display_name
21: end
22:

/opt/csw/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/associ
ations/has_and_belongs_to_many_association.rb:158:in `construct_sql’

/opt/csw/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/associ
ations/has_and_belongs_to_many_association.rb:6:in `initialize’

/opt/csw/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/associ
ations.rb:876:in tags' #{RAILS_ROOT}/app/views/xml/_rss20_item_article.rxml:19:in_run_rxml_xml__rss20_item_article’

/opt/csw/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/vendo
r/builder/xmlbase.rb:138:in `_nested_structures’

/opt/csw/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/vendo
r/builder/xmlbase.rb:60:in method_missing' #{RAILS_ROOT}/app/views/xml/_rss20_item_article.rxml:1:in_run_rxml_xml__rss20_item_article’

/opt/csw/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/base.rb:31
4:in `compile_and_render_template’

/opt/csw/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/base.rb:29
0:in `render_template’

/opt/csw/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/base.rb:24
9:in `render_file’

-Linda

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs