pools: strip leading/trailing, consecutive underscores in names (fix #3263).

This commit is contained in:
evazion
2017-08-10 18:16:50 -05:00
parent 87b0dc3ae3
commit 3b9a54f681
3 changed files with 27 additions and 18 deletions

View File

@@ -36,7 +36,7 @@ class PoolsController < ApplicationController
def create
@pool = Pool.create(params[:pool])
flash[:notice] = "Pool created"
flash[:notice] = @pool.valid? ? "Pool created" : @pool.errors.full_messages.join("; ")
respond_with(@pool)
end