app/controllers/loaners_controller.rb
# 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 loaner_params
      params.require(:loaner).permit(
        :first_name, :last_name, :phone_number, 
        :email, :occupation, :id_type, :id_number, 
        :address, :is_verified, :status,
        :id_card
      )
    end
def loaner_params params . require ( :loaner ) . permit ( :first_name , :last_name , :phone_number , :email , :occupation , :id_type , :id_number , :address , :is_verified , :status , :id_card ) end
Only allow a list of trusted parameters through.
Only allow a list of trusted parameters through .