title: rake aborted! cannot load such file Ruby on Rails
body: <p>I am trying to run a ruby file that updates the database using the rake task . But overtime I run the code, I get an error saying : 
  rake aborted!
  cannot load such file -- app/services/insert_data</p>
  
  <p>The ruby file 'insert_data' is located under the app directory in a folder named 'services'</p>
  
  <p>Here is the rake task I created to run it:</p>
  
  <pre><code>require 'app/services/insert_data'
  
  namespace :record_generate do
  
  
  task :test do
    ruby "app/services/insert_data"
  end
  
  
  end
  </code></pre>
  
  <p>Please help in removing this error.</p>