fix confirm for rails 4