title: Error in Ruby logs -> ActiveRecord::RecordNotFound (Couldn't find Plan with 'id'=1):
body: <p>I a having issues with Heroku, I have a project which is working fine on C9 but when I push to Heroku it gives me the following error in the logs  </p>
  
  <blockquote>
    <p>ActiveRecord::RecordNotFound (Couldn't find Plan with 'id'=1)</p>
  </blockquote>
  
  <p>resulting in following error on my homepage -> </p>
  
  <blockquote>
    <p>The page you were looking for doesn't exist.</p>
  </blockquote>
  
  <p>You may have mistyped the address or the page may have moved.</p>
  
  <p><strong>home.html.erb</strong></p>
  
  <pre><code>&lt;div class="row"&gt;
      &lt;div class="col-md-6"&gt;
          &lt;div class="well"&gt;
              &lt;h3 class="text-center"&gt;Basic membership&lt;/H3&gt;
              &lt;h4&gt;Hier inschrijven voor alle leden van het gezin.&lt;/h4&gt;
              &lt;br /&gt;
              &lt;%= link_to "Sign up free", new_user_registration_path(plan: Plan.find(1).id), class: 'btn btn-primary btn-lg btn-block' %&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  
       &lt;div class="col-md-6"&gt;
           &lt;div class="well"&gt;
               &lt;h3 class="text-center"&gt;Premium membership&lt;/h3&gt;
               &lt;h4&gt;Niet gebruiken dit is een test object.&lt;/h4&gt;
               &lt;br /&gt;
               &lt;%= link_to "Sign up for premium plan", new_user_registration_path(plan: Plan.find(2).id), class: 'btn btn-success btn-lg btn-block' %&gt;
           &lt;/div&gt;
  </code></pre>
  
  <p><strong>pages_controller</strong> </p>
  
  <pre><code>class PagesController &lt; ApplicationController
      def home
          @basic_plan = Plan.find(1)
          @pro_plan = Plan.find(2)
      end
  
      def about
      end
  end
  </code></pre>
  
  <p>I am using devise gem for storing the users as can be seen in the following snippet </p>
  
  <pre><code>Rails.application.routes.draw do
    devise_for :users
    resources :contacts
    get '/about' =&gt; 'pages#about'
    root 'pages#home'
  </code></pre>
  
  <p>everything is backed up to GitHub from master branch and after that pushed to Heroku via master again... It can't find the solution, help would be welcome :)</p>