title: Possibly simple Routing Error: No route matches {:action
body: <p>I think something is wrong with my <strong>create</strong> method.</p>
  
  <p>When I create a new resume from <a href="http://localhost:3000/" rel="nofollow">http://localhost:3000/</a> or <a href="http://localhost:3000/resumes/new" rel="nofollow">http://localhost:3000/resumes/new</a>, I get the routing error shown below.</p>
  
  <hr>
  
  <pre><code>Routing Error
  No route matches {:action=&gt;"show", :controller=&gt;"resumes"}
  </code></pre>
  
  <p>The app goes to <a href="http://localhost:3000/resumes" rel="nofollow">http://localhost:3000/resumes</a> address instead of <a href="http://localhost:3000/resumes/1" rel="nofollow">http://localhost:3000/resumes/1</a>. Not sure why.</p>
  
  <h2>Here is my code.</h2>
  
  <pre><code>class SubmissionsController &lt; ApplicationController
  def create
    @resume = Resume.new(params[:resume])
    if @resume.save
      #UserMailer.created_resume_email(@user).deliver
      redirect_to :action =&gt; 'show'
      format.html { redirect_to(@resume, :notice =&gt; 'Resume was successfully created.') }
      format.xml  { render :xml =&gt; @resume, :status =&gt; :created, :location =&gt; @resume }
    else
      @title = "Create a new resume"
      render 'new'
    end
  end
  
  def show
    @resume = Resume.find(params[:id])
    respond_to do |format|
      format.html # show.html.erb
      format.xml  { render :xml =&gt; @resume }
    end
  end
  end
  </code></pre>
  
  <hr>
  
  <pre><code>Leaflet::Application.routes.draw do
    resources :resumes
    match '/' =&gt; 'resumes#new'
  end
  </code></pre>