Single forms that create multiple models
I've been following along with the Yelpdemo course (modifying it to fit my own use case/project) and wanted to know how I could build a form that creates a restaurant and a review in one go?
Imagine the user searches for a restaurant and it doesn't exist on the system, I'd like them to be able to create the restaurant and leave a review from the same view.
I still want the user to be able to click through from a restaurant to leave a review against an existing restaurant too though.
Any help would be really appreciated.
Posted over 4 years ago by