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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060313/bfb37849/attachment.html
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:> 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 > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/railsCharlie Bowman Programmer Castle Branch Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060314/27ac56b9/attachment.html
> 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/HowToAddCustomValidationKeywords -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060314/f5ab583c/attachment.html
Thanks, I''ll try that out. On Tue, 2006-03-14 at 23:02 +0000, Jordan Elver wrote:> > > 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/HowToAddCustomValidationKeywords > > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/railsCharlie Bowman Programmer Castle Branch Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060315/3b9de510/attachment.html