title: Routes priority in Sinatra
body: <p>in my app I have: </p>
  
  <pre><code>get '/' do
    # stuff
  end
  </code></pre>
  
  <p>with an erb that triggers:</p>
  
  <pre><code>post '/' do
    #code
  end
  </code></pre>
  
  <p>with an erb that links to /:id that at that moment should trigger</p>
  
  <pre><code>get '/:id' do
    #code
  end
  </code></pre>
  
  <p>but instead the <code>get '/:id'</code> route is always triggered, even when i load the homepage.
  I tried to use the pass if but with no happy result. Am I doing something wrong? </p>
  
  <p>In case you want to see the code (I know is terrible):
  <a href="https://github.com/jackscotti/jobbed/blob/master/jobbed.rb" rel="nofollow">https://github.com/jackscotti/jobbed/blob/master/jobbed.rb</a></p>