Active_record has_many, :through and active _resource

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.

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