I don''t think an option like this belongs on `validate`. A model is
either
valid (to save) or it isn''t.
I think something like this is probably best written as a gem.
On Monday, June 11, 2012 3:49:45 AM UTC-5, angelo capilleri
wrote:>
> Frequently, I want use some validation with no error that  blocks the 
> updating or saving process, but give an object with some usefull 
> informations to the controller.
> So i thing that a ''notice'' option could be added to
ActiveModel.
> For example 
>
> validate :age, :numericality => true, :notice=>true
>
> that not add an error instance inside the object that include ActiveModel, 
>  but add an notice istance. 
> Notice instance is similar to errors but it not blocks the saving process.
> In this way we can use all validation stuff to get a lot of informations 
> from our data source, to use in the case of rails in flash message or other
> things. 
>
>
-- 
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Core" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-core/-/jkGn80VkovoJ.
To post to this group, send email to rubyonrails-core@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-core+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en.