In a has_many association, what is the difference between build and new?
// user.rb
has_many :posts
// post.rb
belongs_to :user
Correct Answer: 'build' sets the foreign key and adds it to the collection.
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Ruby On Rails MCQ Questions