There is an easier and better way to do the same. Just use Rails nested model forms: http://ryandaigle.com/articles/2008/7/19/what-s-new-in-edge-rails-nested-models
Hope this helps,
There is an easier and better way to do the same. Just use Rails nested model forms: http://ryandaigle.com/articles/2008/7/19/what-s-new-in-edge-rails-nested-models
Hope this helps,