title: Rails Routing Issue, route not found initally, but on page refresh it works
body: <p>I am relatively new to rails and could not find an answer to this.I have added a controller with a corresponding view. When I go to </p>
  
  <p>root/order_build/show?build=1</p>
  
  <p>I get a routing error saying the path is not found, this is when I click on a link with that address. After I get to the error page and manually refresh the page it works. Any idea why this would be happening?</p>
  
  <pre><code>class OrderBuildController &lt; ApplicationController
    def show
       @build= Build.find(request.GET["build"])
  
    end
  
    def order
    end
  
    def index
    end
  end
  </code></pre>
  
  <p>Here is my routing file</p>
  
  <pre><code>ProjectD::Application.routes.draw do
    get "order_build/show"
  
    get "order_build/order"
  
    get "order_build/index"
  
    get "home/index"
  
    #root :to =&gt; "home#index"
    root :controller =&gt; 'home', :action =&gt; :index
    resources :users, :user_sessions
    match 'login' =&gt; 'user_sessions#new', :as =&gt; :login
    match 'logout' =&gt; 'user_sessions#destroy', :as =&gt; :logout
    resources :sessions
  
    resources :providers
  
    resources :build_prices
  
  
    resources :products do
      resources :product_images
    end
  
    resources :product_tags_products
  
    resources :product_tags
  
    resources :product_images
  
    resources :orders
  
    resources :order_statuses
  
    resources :build_prices
  
    resources :builds do
      resources :build_prices
    end
  
  
    resources :build_statuses
  
    resources :account_types
  end
  </code></pre>