app/controllers/admin/users_controller.rb
# Never trust parameters from the scary internet, only allow the white list through.
Never trust parameters from the scary internet, only allow the white list through.
Never trust parameters from the scary internet only allow the white list through .
def user_params
      params.require(:user).permit(
        :administrator,
        :username
      )
    end
def user_params params . require ( :user ) . permit ( :administrator , :username ) end
Never trust parameters from the scary internet, only allow the white list through.
Never trust parameters from the scary internet only allow the white list through .