Reputation: 6695
I'm trying to create a view where users will be able to fill in 3 forms (I'll probably use javascript to let users change between the 3 tabs):
All of these models have belongs_to :user
in their model as all of the information provided in these forms should belong to the user that created them.
What would be the best way according to Rails to achieve my goal?
Upvotes: 0
Views: 42
Reputation: 83680
use accepts_nested_attributes_for
some useful screencasts:
Upvotes: 1