MCQs > IT & Programming > Ruby On Rails > How do you permit nester attributes in Rails controllers for such model? class User has_one :profile accepts_nested_attributes_for :profile end

Ruby On Rails MCQs

How do you permit nester attributes in Rails controllers for such model? class User has_one :profile accepts_nested_attributes_for :profile end

Answer

Correct Answer: params.require(:user).permit(:email, profile_attributes: [:id, :_destroy])

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Ruby On Rails Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Ruby On Rails Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it