[Rails] active record, checking for existing records
Hi all
Writing Newsfeeds into a database from a directory of xml documents.
In the start of my file loop i have:
next if !NewsFeed.find_by_filename(f)==nil
I do not want to add a file if it has been added previously....
This does not work though!