title: Bug in tutorial: syntax error, unexpected ':', expecting keyword_end
body: <p>I am sorry for asking what may be a remedial question, but in learning rails i was trying to follow along note for note in this tutorial: </p>
  
  <p><a href="http://guides.rubyonrails.org/getting_started.html#configuration-gotchas">http://guides.rubyonrails.org/getting_started.html#configuration-gotchas</a></p>
  
  <p>I am fie to section 5.7 - showing the results of the post, as instructed I add this line to routes.rb</p>
  
  <pre><code>post GET    /posts/:id(.:format)      posts#show
  </code></pre>
  
  <p>and the show method in posts_controller.rb:</p>
  
  <pre><code>class PostsController &lt; ApplicationController
    def new
    end
  
    def create
      @post = Post.new (post_params)
      @post.save
      redirect_to @post
    end
  
    def show
      @post = Post.find(params[:id])
    end
  
    private
      def post_params
        params.require(:post).permit(:title, :text)
      end
  
  end
  </code></pre>
  
  <p>my routes.rb file is</p>
  
  <pre><code>Listing::Application.routes.draw do
    get "welcome/index"
  
    post GET    /posts/:id(.:format)  posts#show
  
  
    resources :posts
  
  
    # You can have the root of your site routed with "root"
    root 'welcome#index'
  end
  </code></pre>
  
  <p>Here is the error:</p>
  
  <blockquote>
    <p>C:/Ruby-Projects/listing/config/routes.rb:4: syntax error, unexpected
    ':', expecting keyword_end post GET /posts/:id(.:format) posts#show ^</p>
    
    <p>Rails.root: C:/Ruby-Projects/listing</p>
    
    <p>Application Trace | Framework Trace | Full Trace This error occurred
    while loading the following files:<br>
    C:/Ruby-Projects/listing/config/routes.rb</p>
  </blockquote>
  
  <p>I am running rails 4.0, ruby 2.0 on 64 bit windows 8.</p>
  
  <p>Admittedly I don't know what that line in the routes.rb is trying to do, but my goal was to type this in and pickup what i can, before digging into the subject full bore.  i cut and pasted the line, typed it in, and tried changing a couple of things - without results.</p>
  
  <p>I am tired, and feeling stupid, so I am here asking for your help.</p>
  
  <p>Thank you in advance.</p>