Discussions

Ask a Question
Back to All

Creating related object using a form

So I have an events content_type and an event , has_many => open_subscriptions, so people can go to a page, select an event, fill in their info and subscribe to the event via the open_subscriptions. You can see my form here http://engine.whale-agency.com/locomotive/okarnhem/preview/open-subscriptions/create_application
the problem I have is that it creates the open_subscription entry but it doesn't create the relationship to the event and I can imagine it is because of the form and how I am doing the select. Here is a gist with the code of my page with the form. https://gist.github.com/DonKoko/28bc5cc36b2a381c2860b0ee3ecd4841