add nested_form ok. Note: need install the gem. refer to https://github.com/ryanb/nested_form