I’m working on an Rails app which reads a CSV file on the server. However, the CSV file keeps getting updated.
My SQLite database is populated from the contents of this CSV file. Is there a way to run a Ruby script as soon as the file is modified and make changes in the database?
You might want to look into some parts of the Guard gem. Specifically the lib/vendor directory seem to contain the code you need for different platforms.