search for: track_two_id

Displaying 1 result from an estimated 1 matches for "track_two_id".

2007 Feb 05
6
Viewing object associated via "has_many :through"?
...playlists, :through => :playlists_tracks end class PlaylistsTrack < ActiveRecord::Base belongs_to :playlist belongs_to :track_one, :class_name => :track, :foreign_key => ''track_one_id'' belongs_to :track_two, :class_name => :track, :foreign_key => ''track_two_id'' end With them I’m able to save to the playlists_tracks table the following: id, playlist_id, track_one_id, track_two_id. That all seems to work fine. But no matter what I put in my playlists/show view file, I get an error message when I attempt to view the tracks associated with a playl...