Forum: Ruby on Rails adding new validates_foo to the models

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
89d967359903c639d31e4cad4569f537?d=identicon&s=25 Charlie Bowman (Guest)
on 2006-03-13 21:07
(Received via mailing list)
I was thinking of adding some new validates_foo to my models.  How could
I create these so that they are reusable in my other apps.  Would these
need to be plugins?  I'm not sure how to go about creating these.


Charlie Bowman
http://www.recentrambles.com
89d967359903c639d31e4cad4569f537?d=identicon&s=25 Charlie Bowman (Guest)
on 2006-03-14 19:49
(Received via mailing list)
Is it not possible to add your own validations like this?  I would
rather have them like this than in their own validate methods.

On Mon, 2006-03-13 at 14:56 -0500, Charlie Bowman wrote:

> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails

Charlie Bowman
Programmer
Castle Branch Inc.
188a96403bfb1b3781ab95fc1bc92241?d=identicon&s=25 Jordan Elver (Guest)
on 2006-03-15 00:06
(Received via mailing list)
> Is it not possible to add your own validations like this?  I would rather
> have them like this than in their own validate methods.


This might help:

http://wiki.rubyonrails.com/rails/pages/HowToAddCu...
89d967359903c639d31e4cad4569f537?d=identicon&s=25 Charlie Bowman (Guest)
on 2006-03-15 13:51
(Received via mailing list)
Thanks, I'll try that out.

On Tue, 2006-03-14 at 23:02 +0000, Jordan Elver wrote:

>
>
>
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails

Charlie Bowman
Programmer
Castle Branch Inc.
This topic is locked and can not be replied to.