title: Couldn't find controller without an ID
body: <p>I'm trying to build Reddit on Rails by Schneems. And I keep getting this error at the point of submitting a new <a href="https://github.com/schneems/reddit_on_rails#create-a-link" rel="nofollow">link</a>.</p>
  
  <p>ruby 1.9.3 </p>
  
  <p>Rails 4.2.0 </p>
  
  <p>What's wrong with my Links#Controller ?</p>
  
  <pre><code>class LinksController &lt; ApplicationController
  
  def show
    @link = Link.find(params[:id])
  end
  
  def new
   @link = Link.new
  end
  
  def create
    @link = Link.new(links_params)
   if @link.save
    redirect_to(:action =&gt; 'show')
   else
    render('new')
   end
  end
  
  private
    def links_params
      params.require(:link).permit(:title, :url)
    end
  end
  </code></pre>
  
  <p>The code should take me to a page showing submitted title and url. But it gives me :</p>
  
  <pre><code>ActiveRecord::RecordNotFound in LinksController#show
  Couldn't find Link without an ID
  Rails.root: C:/Users/Andrew/Documents/reddit_on_rails
  Application Trace | Framework Trace | Full Trace
  app/controllers/links_controller.rb:4:in `show'
  </code></pre>
  
  <p>New view is:</p>
  
  <pre><code>&lt;h1&gt;New link&lt;/h1&gt;
  
  
  &lt;%= form_for @link do |f| %&gt;
  &lt;% if @link.errors.any? %&gt;
  &lt;div id="error_explanation"&gt;
  &lt;h2&gt;&lt;%= pluralize(@link.errors.count, "error") %&gt; prohibited this link from   being saved:&lt;/h2&gt;
  
    &lt;ul&gt;
    &lt;% @link.errors.full_messages.each do |msg| %&gt;
      &lt;li&gt;&lt;%= msg %&gt;&lt;/li&gt;
    &lt;% end %&gt;
    &lt;/ul&gt;
  &lt;/div&gt;
  &lt;% end %&gt;
  
  &lt;div class="field"&gt;
  &lt;%= f.label :title %&gt;&lt;br /&gt;
  &lt;%= f.text_field :title %&gt;
  &lt;/div&gt;
  &lt;div class="field"&gt;
  &lt;%= f.label :url %&gt;&lt;br /&gt;
  &lt;%= f.text_field :url %&gt;
  &lt;/div&gt;
  &lt;div class="actions"&gt;
  &lt;%= f.submit %&gt;
  &lt;/div&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>I've already added strong params to bundler but that did nothing.</p>