Ruby on Rails Sunday, February 16, 2020

I want to create rows in one model from a form for another where associations aren't as simple as the fields_for model belonging to the main model of the form
In my case, I wanna add rows to :user_venue where the main form is for :tour_dates
tour_dates belong to tours, which belong to artists, which belong to users
user_venues belong to artists also but only where the artist user_id is the current_user

--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/bb6949ce-43a1-4358-9f5e-76ac5490e087%40googlegroups.com.

No comments:

Post a Comment