form_with from different model

Skip to first unread message

fugee ohu

Mar 3, 2020, 10:02:48 AM3/3/20
to Ruby on Rails: Talk
In tour_dates show view I've added a form to create a new press_release but on submit the request doesn't include a prepended press_release: { it just starts with {"authenticity token
This is my form Why doesn't the parameters include a prepended press_release object?

<%= form_with model: @press_release, url: create_user_tour_press_release_path(artist_id:, tour_id:, poster_id:, poster_type: 'User') do |f| %>

Reply all
Reply to author
0 new messages