Ok I'vs cloned it and added things and abobs to demo the problem. https://github.com/bsleys/agility-gitorial
If you add a new thing (thing has_many abobs) you can add abobs to the new thing before saving the thing. This creates new abobs in the database that arn't linked to the thing you are creating and the abobs form disappears once it is saved preventing you from adding a second abob. If you then go ahead and save the new thing it's still isn't linked to the abob you created on the new thing form. (note no validations are run on the abob when it is created) If you go in an edit the thing you can add multiple abobs to it but since abob has name and name2 both being required when you fill out the name field the error messages pop up due to the missing name2. If you go ahead and fill out name2 it gets saved to the db fine. Now add a 2nd abob and when the error message pops up it highlight all the abob fields including for the first abob that has already been added to the db. One last note the error messages for the abob form on the thing form only show up when the abob-view is set to <editor/> or some other variant. IE I have the following tag in the application.dryml. I believe if the <abobs-view:> isn't overridden the abob gets saved without any validations being run. <extend tag="form" for="Thing"> <old-form merge> <field-list: fields="name, abobs"> <abobs-view:> <editor/> </abobs-view> </field-list:> </old-form> </extend> Hope this helps. If there is some other way I can help please let me know. Also note I've worked around this in my app so it's not an issue for me currently just something I noticed while developing my app. Bob -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/hobousers/-/DlKte65j1YYJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
