From: Barry Date: 2005-09-09T15:26:31+09:00 Subject: Re: Ruby on Rails Question If you have access to the model object, then you can use the attribute accessor obj.errors to add the message. For example, @user = User.new(params[:user]) @user.errors.add(:name, 'Name cannot be left blank...') Barry Ken Fettig wrote: > How do you add business logic errors to the ApplicationController instead of > in the Model? (ie. errors.add_on_empty(["title", "body"]) > errors.add_on_empty(["title", "body"])) The error I want to generate is tied > to code that would be called within the ApplicationController and has > nothing to do with the Model, but I would like it to appear along with the > other errors in the View. > > Thanks > > Ken > > kenfettig@btinet.net