well the reason im doing this is for refoactoring purposes so my code is 
chaning a lot.

What I have at the moment is:

      file = 'public/images/' + source_url + '.jpg'
      if ((FileTest.exists?(file))&&((Time.new-File.stat(file).mtime)< 
50000))



..................

Im guessing I can stick a 'return true' just below that or does it work 
that way?

-- 
Posted via http://www.ruby-forum.com/.