app/controllers/users_controller.rb
def user_params
      params.require(:user).permit(
        :email,
        :password,
        :password_confirmation,
        :name,
        :DOB,
        :role_id
      )
    end
# Only allow a list of trusted parameters through.
Only allow a list of trusted parameters through.
Only allow a list of trusted parameters through .
def user_params
      params.require(:user).permit(
        :email,
        :password,
        :password_confirmation,
        :name,
        :DOB,
        :role_id
      )
    end
def user_params params . require ( :user ) . permit ( :email , :password , :password_confirmation , :name , :DOB , :role_id ) end
Only allow a list of trusted parameters through.
Only allow a list of trusted parameters through .