form_with from different model

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

form_with from different model

fugee ohu
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: @artist.id, tour_id: @tour.id, poster_id: current_user.id, poster_type: 'User') do |f| %>

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/43bde1af-564f-4c37-9871-18a9393a5c1d%40googlegroups.com.