title: configuring rails3 route with multiple parameters
body: <p><strong>What I have</strong></p>
  
  <pre><code>match "/home/markread/:id" =&gt; "books#markread"
  </code></pre>
  
  <p>goes to </p>
  
  <pre><code>def markread
    #mark params[:id] as read
  end
  </code></pre>
  
  <p><strong>What I want</strong></p>
  
  <p>What If I want to pass another parameter so that urls looks like
  <code>/home/markread/1/didread=read</code> or <code>/home/markread/1/didread=unread</code></p>
  
  <p>so my method will change to </p>
  
  <pre><code>def marked
    #mark params[:id] as params[:didread]
  end
  </code></pre>
  
  <p><strong>Question</strong></p>
  
  <p>what should my <code>routes.rb</code> look like for me to achieve this?</p>