search for: 081_fixtures_in_rails_2

Displaying 1 result from an estimated 1 matches for "081_fixtures_in_rails_2".

2010 Jun 03
2
creating fixtures for has_many :through
I''m stymied at how to create a fixture that establishes a has_many :through relationship. I''ve watched the railscast at: http://media.railscasts.com/videos/081_fixtures_in_rails_2.mov ... but that''s for HABTM relationships. I''ve read: http://www.ruby-forum.com/topic/145676 but that ultimately doesn''t answer any question. So with no further ado: ==== The models: class User < ActiveRecord::Base has_many :user_roles, :dependent => :destro...