jeffp / wizardly

create a functioning wizard for any model in three steps
http://github.com/jeffp/wizardly-examples
MIT License
131 stars 16 forks source link

Does wiardly support nested form attributes? #6

Open edelgado opened 15 years ago

edelgado commented 15 years ago

I've been trying to use nested attributes and wizardly, but I'm getting some strange type mismatch errors. Seems like saving nested attributes is not quite working when used under wizardly.

Is it me, or has this been tested and is deemed supported by wizardly?

Thanks!

jeffp commented 15 years ago

Wizardly does not support nested attributes. The validation group code and generators would need to be changed to support nesting. It would be a good thing though - I'll look into it.

paulschreiber commented 13 years ago

I've been able to successfully use accepts_nested_attributes for with wizardly. I had to hack _build_wizard_model to do it. I'm not sure why my hack works — it relies of a side effect I don't quite understand.