Patrick,

The example I linked to does use nested attributes. See
https://github.com/ryanb/complex-form-examples/blob/master/app/models/survey.rb
for the model class which uses it.

Sam

On Mon, Jul 18, 2011 at 8:03 PM, Patrick J. Collins
<patr...@collinatorstudios.com> wrote:
>> I am new to test-driven development and rspec, so I am writing an
>> application[1] to practice. One of the patterns I am trying to
>> implement is from Ryan Bates' complex-form-examples[2]. Ryan's example
>> doesn't have any tests, so I am trying to write tests for the code.
> Don't forget that the railscast episode you are referring to is quite old and
> has a much better modern solution:
> http://api.rubyonrails.org/classes/ActiveRecord/NestedAttributes/ClassMethods.html
>
> Though maybe you are aware of that and still want to work out this particular
> problem manually with behavior driven development?
>
> Patrick J. Collins
> http://collinatorstudios.com
> _______________________________________________
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to