New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
need help on editing nested-forms #204
Comments
I quickly checked your link, and you have an awful lot of code in a partial. Commonly it is not good practice to be having that much code in a view. Also it is not entirely clear what you are doing exactly. So, this gem is intended to be used with the It is a technique I do not know and I am not sure cocoon supports this at all. Anyway: a quick look revealed you use |
Yes this is quiet hard to understand On Mon, Mar 17, 2014 at 2:48 PM, Nathan Van der Auwera <
Alexandre Aazzouz-Leconte Développeur web |
Ok, but you are most definitely missing the Good luck 👍 I am not sure if I can do a lot to help you now? |
Closed due to inactivity. |
Hello,
My aim is to be able to call existing nested objects in my database and edit them.
To do so I created a template which display the form objects according to an xml schema, each class has it's own form.
Example of form :
I can display existing objects with the link_to_add like this :
However when I open my edit popup the link_to add buttons generate wrong names.
It should output :
study[authors_attributes][1395055572220][orgunits_attributes][1395055573891][name]
But it displays :
study[new_authors][orgunits_attributes][1395055573891][name]
Could you help me, I don't think you have time to explore my code but do you know a good way to edit nested forms ?
My github is here : https://github.com/Ezekiah/hydra-head-archipolis/blob/master/app/views/studies/_display_fields.html.haml
The text was updated successfully, but these errors were encountered: