app/controllers/city_managers_controller.rb
# Only allow a trusted parameter "white list" through.
Only allow a trusted parameter "white list" through.
Only allow a trusted parameter " white list " through .
def city_manager_params
      params.require(:city_manager).permit(
        :name,
        :email,
        :password,
        :city,
        :first_access,
        :app_id
      )
    end
def city_manager_params params . require ( :city_manager ) . permit ( :name , :email , :password , :city , :first_access , :app_id ) end
Only allow a trusted parameter "white list" through.
Only allow a trusted parameter " white list " through .