diff --git a/app/controllers/todos/todo_create_params_helper.rb b/app/controllers/todos/todo_create_params_helper.rb index 721f9064..3fbfb8cd 100644 --- a/app/controllers/todos/todo_create_params_helper.rb +++ b/app/controllers/todos/todo_create_params_helper.rb @@ -110,7 +110,7 @@ module Todos end def add_errors(model) - @errors.each {|e| model.errors[ e[:attribute] ] = e[:message] } + @errors.each {|e| model.errors.add(e[:attribute], e[:message]) } end private