Complete the code to permit the :name attribute in strong parameters.
params.require(:user).permit([1])The permit method specifies which attributes are allowed. Here, :name is permitted.
Complete the code to require the :article parameter in strong parameters.
params.[1](:article).permit(:title, :content)permit instead of require.allow.The require method ensures the parameter :article is present before permitting attributes.
Fix the error in the strong parameters method to permit :title and :body.
def article_params params.require(:article).[1](:title, :body) end
require twice.allow.The permit method is used to allow specific attributes after requiring the parameter.
Fill both blanks to permit :email and :password inside the user_params method.
def user_params params.[1](:user).[2](:email, :password) end
require and permit.First, require ensures the :user parameter exists, then permit allows :email and :password.
Fill all three blanks to permit nested attributes :name, :email, and :profile_attributes with :age inside strong parameters.
def user_params params.[1](:user).[2](:name, :email, [3]: [:age]) end
fetch instead of require.Use require to demand :user, permit to allow attributes, and specify nested profile_attributes with :age.