Saturday, October 20, 2012

Re: [Rails] Re: Validate presence before custom validation

On 20 October 2012 22:29, Eugeni Kurtov <lists@ruby-forum.com> wrote:
> Great, according to this logic system will take care for error messages
> and this will not take place, right? :)
> if start_at.nil?
> errors.add(:start_at, "can't be blank")
> return
> if start_end.nil?
> errors.add(:end_at, "can't be blank")
> return

Sorry, I do not understand what you are asking? Is this a
continuation of your first question or is it a new question? If is
is a new question then it would be better to start a new thread.

Colin

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate