title: Adding an action to an existing controller (Ruby on Rails)
body: <p>I am new to Ruby on Rails, I have completed the <a href="http://guides.rubyonrails.org/getting_started_with_rails.html" rel="noreferrer">Blog Tutorial</a>.</p>
  
  <p>I am now trying to add an additional action to the controller, called 'start'.</p>
  
  <pre><code>def start
  end
  </code></pre>
  
  <p>I have added a view page "app/views/posts/start.html.erb" containing nothing but simple html.</p>
  
  <p>When I go to /posts/start i get the following error.</p>
  
  <pre><code>ActiveRecord::RecordNotFound in PostsController#show 
  Couldn't find Post with ID=start
  </code></pre>
  
  <p>I understand the error, the show action is being executed and start is not a valid ID. Why doesn't the start action get executed, is there some part of the MVC architecture or configuration I am missing ?</p>
  
  <p>Below is my posts_controller.rb</p>
  
  <pre><code>class PostsController &lt; ApplicationController
  
    # GET /posts/start
    def start
    end
  
    # GET /posts
    # GET /posts.xml
    def index
      @posts = Post.find(:all)
      respond_to do |format|
        format.html # index.html.erb
        format.xml  { render :xml =&gt; @posts }
      end
    end
  
    # GET /posts/1
    # GET /posts/1.xml
    def show
      @post = Post.find(params[:id])
      respond_to do |format|
        format.html # show.html.erb
        format.xml  { render :xml =&gt; @post }
      end
    end
  
  end
  </code></pre>
  
  <p>Yes I have restarted the server and tried it with Mongrel and webrick.</p>