Discussions
Creating related objects via form
over 8 years ago by Nikolay Bonev(edited)
Hey Everybody,
I have a form with used for public submission. That form is placed on the event
page and creates an open_subscription
and open_subscription
belongs_to event
. Now the issue I have is that it creates the open_subscription
entry but the event field stays empty. I have tried everything I could think of but still no success.
Has anyone worked with forms that create related objects? How did you implement it? Any suggestions?
Here is a gist with my code: https://gist.github.com/DonKoko/ff8d59d42d9357ef5cb0fc6545d30876