Skip to content

Commit

Permalink
Now using full messages for validation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Sieh committed Sep 13, 2010
1 parent 71b4ae6 commit 76aa291
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class ApplicationController < ActionController::Base
def error_on_create_messages(model_instance, name=nil)
obj_name = (name) ? name : model_instance.class.human_name
error_stickie("<strong>Could not create a new #{obj_name} because of the following problems:</strong>")
model_instance.errors.each{|key,value| error_stickie("#{value}")}
model_instance.errors.each_full{|full_msg| error_stickie("#{full_msg}")}
end

def must_have_current_show
Expand Down

0 comments on commit 76aa291

Please sign in to comment.