# Active\_record has\_many, :through and active \_resource

**URL:** <https://www.ruby-forum.com/t/active-record-has-many-through-and-active-resource/174379>\
**Category:** Rails\
**Created:** [August 25, 2009, 11:21pm UTC](https://www.ruby-forum.com/t/active-record-has-many-through-and-active-resource/174379 "2009-08-25T23:21:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![slavix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b19c9b/32.png) [@slavix](https://www.ruby-forum.com/u/slavix)\
**Post date:** [August 25, 2009, 11:21pm UTC](https://www.ruby-forum.com/t/active-record-has-many-through-and-active-resource/174379/1 "2009-08-25T23:21:41Z")

</div>

Hello,  
I have many to many relationship between Venue and Catalog

```
class Venue < ActiveRecord::Base
  has_many :venue_catalogs
  has_many :catalogs, :through => :venue_catalogs
end

class VenueCatalog < ActiveRecord::Base
  belongs_to :venue
  belongs_to :catalog
end

class Catalog < ActiveResource
end
```

when I call url /venues.xml I get  
undefined method `quoted\_table\_name’ for Catalog:Class

seems belongs\_to ActiveResource is not recognizing catalog is not an  
ActiveRecord.
