The short answer is no. The classes involved in has_many , belongs_to , has_and_belongs_to_many live in ActiveRecord and build SQL queries to make associations work.
However, you can make it look like an association exists, you just need to write your own methods. What was the interviewed answer to this question that you contacted.
So, add a column to your contact model, which is in user_id , or any other key that you need to pass into your User.find ActiveResource model, and you can include the association contract as follows:
class User < ActiveResource::Base
The more you get from has_many for free, but its essence.
source share