Create associated record #4136
-
|
I have a "A has_one B" association, and on the "show B" view, I want to click on a link to get to the "new A" form with the B selected. In the docs there is an explanation on how to make the has_one field visible in the "edit" view, but nothing about the "new" view. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @manuelmeurer, this discussion slipped under the radar. Thank you for your patience. I can think of some solutions, but none are plug and play. Before we dive in, could you please confirm if this question is still relevant for your case or if you already found and applied a solution?
You can use |
Beta Was this translation helpful? Give feedback.
I've solved it like this: