pools: strip leading/trailing, consecutive underscores in names (fix #3263).
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user