expected Hash (got Array) for param 'samples'
问题 I have been following Railscasts episodes of Nested forms and complex forms. During the time of creating multiple model in a single form I was able to edit, update, delete and create records for sample models that were nested in the Batch model. I have been breaking my head from a long time and tried searching around as well but could not get any right solution for solving this problem. my development log file gives me the following error. ERROR MESSAGE: Status: 500 Internal Server Error