Many to Many associations

Hi,

i have this:

class User < ActiveRecord::Base
has_many :transfers
has_many :camelids, :through => :transfers
end

class Camelid < ActiveRecord::Base
has_many :transfers
has_many :users, :through => :transfers
end

class Transfer < ActiveRecord::Base
belongs_to :user
belongs_to :camelid
end

how can i show a field from transfers in my view??
in the controler:
@camelids = User.find(current_user.id, :conditions =>
[“transfers.actual_owner=1”],:include=>[:camelids, :transfers]).camelids

in the view

camelid.transfers.transfer_at ??? but is shows an error : undefined
method `transfer_at’ for Transfer:Class

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