title: Deploying Ruby on Rails app to Heroku: Links not working, Images not appearing
body: <p>I have just deployed my app on <strong>Heroku</strong> to find that none of my images are showing up and the links are not working even though my app works well locally. Please click on this link to take a look: <br>
  <a href="https://obscure-depths-71348.herokuapp.com/" rel="nofollow noreferrer">https://obscure-depths-71348.herokuapp.com/</a></p>
  
  <p>You can see that each time the "<strong>Sign Up</strong>", <strong>Log In</strong>", or "<strong>Live</strong>" button is pressed, you see, "We're sorry, but something went wrong." </p>
  
  <p>What is even more agonizing is that when I type in the command prompt "heroku logs", I get an eternally long list of fatal errors: </p>
  
  <blockquote>
  <pre><code>2016-12-05T06:30:46.235005+00:00 app[web.1]: F,    [2016-12-05T06:30:46.234958 #4] FATAL -- :   
  </code></pre>
    
    <p>[017e9049-b5c9-4f4c-8b0d-7380e3136888]<br>
    vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/tagged_logging.rb:70:in
    <code>tagged' 2016-12-05T06:30:46.235054+00:00 app[web.1]: F,<br>
    [2016-12-05T06:30:46.235006 #4] FATAL -- :<br>
    [017e9049-b5c9-4f4c-8b0d-7380e3136888]<br>
    vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/rack/logger.rb:24:in
    </code>call'
        2016-12-05T06:30:46.235418+00:00 heroku[router]: at=info method=GET path="/assets/contactcover.jpg"<br>
    host=obscure-depths-71348.herokuapp.com<br>
    request_id=017e9049-b5c9-4f4c-8b0d-7380e3136888 fwd="153.104.25.21"<br>
    dyno=web.1 connect=1ms service=13ms status=404 bytes=1744
        2016-12-05T06:30:46.235110+00:00 app[web.1]: F, [2016-12-05T06:30:46.235059 #4] FATAL -- :<br>
    [017e9049-b5c9-4f4c-8b0d-7380e3136888]<br>
    vendor/bundle/ruby/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/request_id.rb:24:in
    <code>call'
        2016-12-05T06:30:46.235160+00:00 app[web.1]: F, [2016-12-05T06:30:46.235112 #4] FATAL -- :<br>
    [017e9049-b5c9-4f4c-8b0d-7380e3136888]<br>
    vendor/bundle/ruby/2.2.0/gems/rack-2.0.1/lib/rack/method_override.rb:22:in
    </code>call'
        2016-12-05T06:30:46.235276+00:00 app[web.1]: F, [2016-12-05T06:30:46.235209 #4] FATAL -- :<br>
    [017e9049-b5c9-4f4c-8b0d-7380e3136888]<br>
    vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in
    <code>call'
        2016-12-05T06:30:46.235207+00:00 app[web.1]: F, [2016-12-05T06:30:46.235161 #4] FATAL -- :<br>
    [017e9049-b5c9-4f4c-8b0d-7380e3136888]<br>
    vendor/bundle/ruby/2.2.0/gems/rack-2.0.1/lib/rack/runtime.rb:22:in
    </code>call'
        2016-12-05T06:30:46.235333+00:00 app[web.1]: F, [2016-12-05T06:30:46.235277 #4] FATAL -- :<br>
    [017e9049-b5c9-4f4c-8b0d-7380e3136888]<br>
    vendor/bundle/ruby/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/executor.rb:12:in
    <code>call'
               [even more fatal errors]
        2016-12-05T06:30:46.219048+00:00 heroku[router]: at=info method=GET path="/assets/intro-bg.jpg"<br>
    host=obscure-depths-71348.herokuapp.com<br>
    request_id=186c98cc-a9dc-4348-9f24-8bdcde8b6380 fwd="153.104.25.21"<br>
    dyno=web.1 connect=0ms service=6ms status=404 bytes=1744
        2016-12-05T06:30:46.338582+00:00 heroku[router]: at=info method=GET path="/fonts/fontawesome-webfont.ttf?v=4.2.0"<br>
    host=obscure-depths-71348.herokuapp.com<br>
    request_id=ab268eea-397b-486d-b481-bb9baed05b19 fwd="153.104.25.21"<br>
    dyno=web.1 connect=0ms service=22ms status=404 bytes=1744
                   [...]
        2016-12-05T06:30:46.414182+00:00 app[web.1]: F, [2016-12-05T06:30:46.414118 #4] FATAL -- :<br>
    [1362654e-c7e4-45ff-bef6-a4150f2ac88c]<br>
    vendor/bundle/ruby/2.2.0/gems/rack-2.0.1/lib/rack/method_override.rb:22:in
    </code>call'<br>
    2016-12-05T06:30:46.414232+00:00 app[web.1]: F,<br>
    [2016-12-05T06:30:46.414184 #4] FATAL -- :<br>
    [1362654e-c7e4-45ff-bef6-a4150f2ac88c]<br>
    vendor/bundle/ruby/2.2.0/gems/rack-2.0.1/lib/rack/runtime.rb:22:in<br>
    <code>call'<br>
    2016-12-05T06:30:46.414289+00:00 app[web.1]: F,<br>
    [2016-12-05T06:30:46.414236 #4] FATAL -- :<br>
    [1362654e-c7e4-45ff-bef6-a4150f2ac88c]<br>
    vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in
    </code>call'                2016-12-05T06:30:46.414344+00:00 app[web.1]: F, 
    [2016-12-05T06:30:46.414290 #4] FATAL -- :<br>
    [1362654e-c7e4-45ff-bef6-a4150f2ac88c]<br>
    vendor/bundle/ruby/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/executor.rb:12:in
    <code>call'<br>
    2016-12-05T06:30:46.414409+00:00 app[web.1]: F,<br>
    [2016-12-05T06:30:46.414346 #4] FATAL -- :<br>
    [1362654e-c7e4-45ff-bef6-a4150f2ac88c]<br>
    vendor/bundle/ruby/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/static.rb:136:in
    </code>call'<br>
    2016-12-05T06:30:46.414467+00:00 app[web.1]: F,<br>
    [2016-12-05T06:30:46.414403 #4] FATAL -- :<br>
    [1362654e-c7e4-45ff-bef6-a4150f2ac88c]<br>
    vendor/bundle/ruby/2.2.0/gems/rack-2.0.1/lib/rack/sendfile.rb:111:in<br>
    <code>call'<br>
    2016-12-05T06:30:46.414526+00:00 app[web.1]: F,<br>
    [2016-12-05T06:30:46.414471 #4] FATAL -- :<br>
    [1362654e-c7e4-45ff-bef6-a4150f2ac88c]<br>
    vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/engine.rb:522:in
    </code>call'<br>
    2016-12-05T06:30:46.414588+00:00 app[web.1]: F,<br>
    [2016-12-05T06:30:46.414529 #4] FATAL -- :<br>
    [1362654e-c7e4-45ff-bef6-a4150f2ac88c]<br>
    vendor/bundle/ruby/2.2.0/gems/puma-3.6.2/lib/puma/configuration.rb:225:in
    <code>call'<br>
    2016-12-05T06:30:46.414653+00:00 app[web.1]: F,<br>
    [2016-12-05T06:30:46.414599 #4] FATAL -- :<br>
    [1362654e-c7e4-45ff-bef6-a4150f2ac88c]<br>
    vendor/bundle/ruby/2.2.0/gems/puma-3.6.2/lib/puma/server.rb:578:in
    </code>handle_request'<br>
    2016-12-05T06:30:46.414720+00:00 app[web.1]: F,<br>
    [2016-12-05T06:30:46.414655 #4] FATAL -- :<br>
    [1362654e-c7e4-45ff-bef6-a4150f2ac88c]<br>
    vendor/bundle/ruby/2.2.0/gems/puma-3.6.2/lib/puma/server.rb:415:in<br>
    <code>process_client'<br>
    2016-12-05T06:30:46.414794+00:00 app[web.1]: F,<br>
    [2016-12-05T06:30:46.414727 #4] FATAL -- :<br>
    [1362654e-c7e4-45ff-bef6-a4150f2ac88c]<br>
    vendor/bundle/ruby/2.2.0/gems/puma-3.6.2/lib/puma/server.rb:275:in
    </code>block in run'       [...]
        2016-12-05T06:30:46.211389+00:00 heroku[router]: at=info method=GET path="/welcome/js/jquery.js"<br>
    host=obscure-depths-71348.herokuapp.com<br>
    request_id=46da25e7-77dd-4270-984d-30350b1517df fwd="153.104.25.21"<br>
    dyno=web.1 connect=0ms service=31ms status=404 bytes=1744</p>
  </blockquote>
  
  <p>Here's a snippet of the root html. Also, my anchor links are not working if someone may kindly explain that to me as well: </p>
  
  <p>home.html.erb:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  
  &lt;head&gt;
  
      &lt;meta charset="utf-8"&gt;
      &lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
      &lt;meta name="description" content=""&gt;
      &lt;meta name="author" content=""&gt;
  
      &lt;title&gt;United Cycling&lt;/title&gt;
  
      &lt;!-- Bootstrap Core CSS --&gt;
      &lt;link href="css/bootstrap.min.css" rel="stylesheet"&gt;
  
      &lt;!-- Custom CSS --&gt;
      &lt;link href="css/landing-page.css" rel="stylesheet"&gt;
  
      &lt;!-- Custom Fonts --&gt;
      &lt;link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"&gt;
      &lt;link href="https://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css"&gt;
  
      &lt;!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --&gt;
      &lt;!-- WARNING: Respond.js doesn't work if you view the page via file:// --&gt;
      &lt;!--[if lt IE 9]&gt;
          &lt;script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"&gt;&lt;/script&gt;
          &lt;script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"&gt;&lt;/script&gt;
      &lt;![endif]--&gt;
  
  &lt;/head&gt;
  
  &lt;body&gt;
  
      &lt;!-- Navigation --&gt;
      &lt;nav class="navbar navbar-default navbar-fixed-top topnav" role="navigation"&gt;
          &lt;div class="container topnav"&gt;
              &lt;!-- Brand and toggle get grouped for better mobile display --&gt;
              &lt;div class="navbar-header"&gt;
                  &lt;button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"&gt;
                      &lt;span class="sr-only"&gt;Toggle navigation&lt;/span&gt;
                      &lt;span class="icon-bar"&gt;&lt;/span&gt;
                      &lt;span class="icon-bar"&gt;&lt;/span&gt;
                      &lt;span class="icon-bar"&gt;&lt;/span&gt;
                  &lt;/button&gt;
                  &lt;a class="navbar-brand topnav" href="#"&gt;United Cycling&lt;/a&gt;
              &lt;/div&gt;
              &lt;!-- Collect the nav links, forms, and other content for toggling --&gt;
              &lt;div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"&gt;
                  &lt;ul class="nav navbar-nav navbar-right"&gt;
                      &lt;li&gt;
                          &lt;%= link_to("About", {}, :name =&gt; "about") %&gt; 
                      &lt;/li&gt;
                      &lt;li&gt;
                          &lt;%= link_to("Schedule", {}, :name =&gt; "schedule") %&gt; 
                      &lt;/li&gt;
                      &lt;li&gt;
                          &lt;%= link_to("Contact", {}, :name =&gt; "contact") %&gt; 
                      &lt;/li&gt;
                      &lt;li&gt; 
                          &lt;a href="/members/live"&gt;Live &lt;/a&gt; 
                      &lt;/li&gt;
                      &lt;% if user_signed_in? %&gt; 
                      &lt;li&gt;
                          &lt;%= link_to "Log Out", destroy_user_session_path, method: :delete %&gt;
                      &lt;/li&gt;
                      &lt;% end %&gt; 
                  &lt;/ul&gt;
              &lt;/div&gt;
              &lt;!-- /.navbar-collapse --&gt;
          &lt;/div&gt;
          &lt;!-- /.container --&gt;
      &lt;/nav&gt;
  
  
      &lt;!-- Header --&gt;
      &lt;a name="about"&gt;&lt;/a&gt;
      &lt;div class="intro-header"&gt;
          &lt;div class="container"&gt;
  
              &lt;div class="row"&gt;
                  &lt;div class="col-lg-12"&gt;
                      &lt;div class="intro-message"&gt;
                          &lt;h1&gt;United Cycling&lt;/h1&gt;
                          &lt;h3&gt;Est 2012&lt;/h3&gt;
                          &lt;hr class="intro-divider"&gt;
                          &lt;ul class="list-inline intro-social-buttons"&gt;
                              &lt;li&gt;
                                  &lt;% if !user_signed_in? %&gt; 
                                  &lt;a href="/users/sign_up" class="btn btn-default btn-lg"&gt;&lt;span class="network-name"&gt;Sign Up&lt;/span&gt;&lt;/a&gt;
                              &lt;/li&gt;
                              &lt;li&gt;
                                  &lt;a href="/users/sign_in" class="btn btn-default btn-lg"&gt;&lt;span class="network-name"&gt;Log In&lt;/span&gt;&lt;/a&gt;
                              &lt;/li&gt;
                              &lt;% end %&gt; 
                          &lt;/ul&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
  
          &lt;/div&gt;
  ...
  </code></pre>
  
  <p>And here's my Gemfile, where I might suspect trouble: </p>
  
  <pre><code>    source 'https://rubygems.org'
  
  ruby '2.2.4'
  
  # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
  gem 'rails', '~&gt; 5.0.0', '&gt;= 5.0.0.1'
  # Use sqlite3 as the database for Active Record
  #gem 'sqlite3'
  group :development, :test do
    gem 'sqlite3'
  end
  
  group :production do
    gem 'pg'
  end
  
  # Use Puma as the app server
  gem 'puma', '~&gt; 3.0'
  # Use SCSS for stylesheets
  gem 'sass-rails', '~&gt; 5.0'
  # Use Uglifier as compressor for JavaScript assets
  gem 'uglifier', '&gt;= 1.3.0'
  # Use CoffeeScript for .coffee assets and views
  gem 'coffee-rails', '~&gt; 4.2'
  # See https://github.com/rails/execjs#readme for more supported runtimes
  # gem 'therubyracer', platforms: :ruby
  
  # Use jquery as the JavaScript library
  gem 'jquery-rails'
  # Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
  gem 'turbolinks', '~&gt; 5'
  # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
  gem 'jbuilder', '~&gt; 2.5'
  # Use Redis adapter to run Action Cable in production
  # gem 'redis', '~&gt; 3.0'
  # Use ActiveModel has_secure_password
  # gem 'bcrypt', '~&gt; 3.1.7'
  gem 'devise', '~&gt; 4.2'
  # Use Capistrano for deployment
  # gem 'capistrano-rails', group: :development
  
  
  
  group :development, :test do
    # Call 'byebug' anywhere in the code to stop execution and get a debugger console
    gem 'byebug', platform: :mri
  end
  
  group :development do
    # Access an IRB console on exception pages or by using &lt;%= console %&gt; anywhere in the code.
    gem 'web-console'
  
  end
  
  # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
  gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
  </code></pre>
  
  <p>Thank you in advance!</p>