title: rails routing error 'uninitialized constant'
body: <p>I've been learning RoR through Bloc.io and am having an issue with one of their assignments and need some help. I am creating a reddit clone and have run into some routing errors.</p>
  
  <p>I was tasked with creating a new 'summary' model that was associated with individual posts.</p>
  
  <p>Update: I have now nested the summary within the posts routing. Updated error at bottom of post.</p>
  
  <p>Update2: Renamed Summary to Summaries in needed places. Updated error at bottom of post.</p>
  
  <p>Here is the Updated route.rb file:</p>
  
  <pre><code>    Rails.application.routes.draw do
  
        devise_for :users
  
        resources :topics do
          resources :posts, except: [:index] do
            resources :summaries, only: [:new, :show]
          end
        end
  
        get 'about' =&gt; 'welcome#about'
  
        root to: 'welcome#index'
      end
  </code></pre>
  
  <p>The summary.rb file:</p>
  
  <pre><code>    class Summary &lt; ActiveRecord::Base
          belongs_to :post
      end
  </code></pre>
  
  <p>The post.rb file:</p>
  
  <pre><code>    class Post &lt; ActiveRecord::Base
          has_many :comments
          has_one :summary
          belongs_to :user
          belongs_to :topic
  
          default_scope { order('created_at DESC') }
      end
  </code></pre>
  
  <p>The Updated summaries_controller.rb file:</p>
  
  <pre><code>    class SummariesController &lt; ApplicationController
        def new
          @summary = Summary.new
        end
  
        def show
          @summary = Summary.find(params[:id])
        end
      end
  </code></pre>
  
  <p>And finally the error when I try to go to for instance "/topics/17/posts/56/summary"</p>
  
  <pre><code>    No route matches [GET] "/topics/17/posts/56/summary"
  </code></pre>
  
  <p>If I am missing any files or anything else I'll be happy to post.</p>
  
  <p>Thank you for any help you can give.</p>