title: Cannot Load Such File -- config/application Rails App Heroku Require Links
body: <p>I spent the last few weeks learning how to code using a Udemy course and Codecademy while building a website for the company I am working at. I built it using Ruby on Rails, which I do not have a very good understanding of at the moment. I am currently attempting to get the app working on a Hostgator server. I was using a more recent version of Ruby and Rails than supported by Hostgator, as I recently found out, and I have been working through this guide, fixing errors as I go: <a href="http://support.hostgator.in/articles/specialized-help/technical/how-do-i-start-using-ruby-on-rails" rel="nofollow noreferrer">http://support.hostgator.in/articles/specialized-help/technical/how-do-i-start-using-ruby-on-rails</a></p>
  
  <p>My most recent issue is that require_relative is unsupported. I had connected to SSH in the terminal and ran the command <code>rake generate_session_store</code>, which returned this error:</p>
  
  <pre><code>rake aborted!
  undefined method `require_relative' for main:Object
  </code></pre>
  
  <p>After doing some research on what this was, I decided to change find all instances of 'require_relative' in my document and change them to 'require'. I then pushed the site to Heroku to find out if the site still worked. This is the error I got: </p>
  
  <pre><code>remote: -----&gt; Detecting rake tasks
  remote: sh: 2: Syntax error: Unterminated quoted string
  remote: sh: 2: Syntax error: Unterminated quoted string
  remote:  !
  remote:  !     Could not detect rake tasks
  remote:  !     ensure you can run `$ bundle exec rake -P` against your app
  remote:  !     and using the production group of your Gemfile.
  remote:  !     rake aborted!
  remote:  !     LoadError: cannot load such file -- config/application
  </code></pre>
  
  <p>Running 'bundle exec rake -P' shows the bottom line above on top and has a lot of other information following. Here's my Rakefile, which appears to be the source of the problem:</p>
  
  <pre><code>require 'config/application'
  
  Rails.application.load_tasks
  </code></pre>
  
  <p>The require used to be require_relative so I know the problem is there. I've tried changing the link path to all kinds of different things. I believe the file being referenced is the application.rb file, so I've added the extension, added '/socascade/' (my app folder) to the beginning of the link, and attempted some other fixes using the few resources I was able to find. No luck so far. Here's my directory structure if that would help:</p>
  
  <pre><code>socascade
  -config
  --environments
  ---development.rb
  ---production.rb
  ---test.rb
  --initializers
  ---application_controller_renderer.rb
  ---assets.rb
  ---backtrace_silencers.rb
  ---cookies_serializer.rb
  ---filter_parameter_logging.rb
  ---inflections.rb
  ---mime_types.rb
  ---simple_form.rb
  ---wrap_parameters.rb
  --locales
  ---en.yml
  ---simple_form.en.yml
  --application.rb
  --boot.rb
  --cable.yml
  --database.yml
  --environment.rb
  --puma.rb
  --routes.rb
  --secrets.yml
  --spring.rb
  </code></pre>
  
  <p>If this is something extremely simple, please understand that I literally started coding about four or five weeks ago, so most of this is new to me. I couldn't find a solution after about half an hour of searching, so that's where I'm coming from now. Thanks in advance</p>