title: Adding a Route to a Rails 3 Controller
body: <p>I'm still getting the hang of Rails, and I've come across a problem that I think should be pretty easy.  Hoping someone can show me the error of my ways.</p>
  
  <p>I read through this other post:  <a href="https://stackoverflow.com/questions/2634964/adding-restful-route-to-rails-app">How to add a custom RESTful route to a Rails app?</a>  which has a ton of good info (for Rails 2, I'm using Rails 3), but I can't seem to get my code to work.  Here's where I'm at:</p>
  
  <p>I have appended my routes.rb as follows:</p>
  
  <pre><code>  resources :proposals do
      member do
        put :change_status
      end
    end
  </code></pre>
  
  <p>I have appended my proposals_controller.rb as follows:</p>
  
  <pre><code>  def change_status
      @proposal = Proposal.find(params[:id])
  
      respond_to do |format|
        if @proposal.change_status
          format.html { redirect_to(@proposal, :notice =&gt; 'Proposal status was changed.'') }
          format.xml  { head :ok }
        else
          format.html { redirect_to(@proposal, :error =&gt; 'Proposal failed to transition.') }
          format.xml  { render :xml =&gt; @proposal.errors, :status =&gt; :unprocessable_entity }
        end
      end
    end
  </code></pre>
  
  <p>And finally, in my view, I'm accessing it as follows:</p>
  
  <pre><code>&lt;%= link_to "Deliver to Client", change_status_proposal_path(@proposal) %&gt;
  </code></pre>
  
  <p>But when I access my site by going to </p>
  
  <pre><code>http://localhost:3000/proposals/4/change_status
  </code></pre>
  
  <p>I get the following error:</p>
  
  <p><strong>Routing Error</strong></p>
  
  <p><em>No route matches "/proposals/4/change_status"</em></p>
  
  <p>I assume I'm doing something stupid here, because this should be really basic, but I just can't seem to get past it.  I apologize for asking such a basic question, but if anyone has any advice it would be a huge help.</p>
  
  <p>Thanks in advance!</p>