search for: validates_format_of_url

Displaying 2 results from an estimated 2 matches for "validates_format_of_url".

2006 Jun 13
0
HTTP validation regexp, possible solution
...o: rails@lists.rubyonrails.org >> Subject: Re: [Rails] [ANN] HTTP URL validation plugin >> >> Nathaniel S. H. Brown wrote: >>> One useful addition worth considering is adding this RegEX >>> as a define or even as a helper to AR in the format of >>> "validates_format_of_url :url" to be a shorthand for the REGEX. >>> >>> Source: http://www.nshb.net/node/252 >>> >>> class Company < ActiveRecord::Base >>> validates_format_of :url, :with => >>> >>> /^(http|https):\/\/[a-z0-9]+([\-\.]{1}[a-z0-9]+)*...
2006 Jan 25
24
RailsCron 0.2 plugin
I received feedback from some of you, saying that it would be cool if RailsCron was even easier to manage. So I implemented a graceful start/restart inside of the plugin''s init.rb. If you don''t like it, comment it out and send me the feedback. Also, I finished an update to RailsCron that allows you to attach asynchronous processing methods to your ActiveRecord models. i.e.: