This post originated from an RSS feed registered with Ruby Buzz
by Matthew Bass.
Original Post: Fix for fixture_replacement2 when using default methods
Feed Title: Pelargir
Feed URL: http://feeds.feedburner.com/pelargir/
Feed Description: Musings on software and life from Matthew Bass. Regular posts on new web products, tips and tricks, etc.
I’ve been using the excellent fixture_replacement plugin for several months now and greatly prefer it over traditional fixtures (yes, even foxy fixtures). fixture_replacement2 adds even more goodness to the party. However, I ran into a problem today when trying to use default_xxx methods in my example_data.rb file:
module FixtureReplacement
attributes_for :course do |c|
c.name = "Geometry"
c.transcript = default_transcript
end
attributes_for [...]