In my train app, I have a nested model and I would like to create a child model after parent's creation and this original Like to do this in the 'edit' view of the model. I am using jquery for parent model.
parent controller
def can create studio = student.new (student_perm) if the student @dd #### is to make a child model like # here # Student.student_grades.build response_to do | Format | Format.js {render 'edit'} and finally answer. Format.js {Render 'New'} End And End
Unfortunately the above code is not working. I also have a build line in the edit but it does not help because the rendering goes directly to the scene
Update The problem was not the code above, but the code in the view was the code. Thank you for your help though.
It's possible that just copy it and copy it, but you have a @studate in the second line Used an uppercase 's' on, but using a lowercase on line 3
No comments:
Post a Comment