Added partial_extra_params to link_to_add_nested helper - #64
Added partial_extra_params to link_to_add_nested helper#64gregogalante wants to merge 2 commits into
Conversation
|
hey! thanks! sorry I've been slow to reply, I'll check this one of these days, I've been super busy lately |
|
Hey @arielj, have you checked? |
|
Hey! sorry for the long response, I did make some time to check the PR and I like the feature, I have some suggestions and some requests. It would be great to have a test for this (I imagine something simple, like adding a partial using one variable that you then pass in the method call and assert the content is present in the rendered html). You can check We should include also an update in the README.md to document this new param. Lastly, maybe the argument can be named thanks for the collaboration!! |
arielj
left a comment
There was a problem hiding this comment.
thanks! sorry for the long delay responding here
|
thanks! I'm closing this PR because I had to merge things manually locally (there are conflicts after merging other PRs). This was merged into main here 4121c91 |
I have added a new parameter "partial_extra_params" on link_to_add_nested helper to permit user to send other extra parameters to the nested fields attributes.
In my example i have a form for the model Strategy with different Strategies::Rule for every typology. Now i can pass the typology value to an hidden field on rules attributes using partial_extra_params.