title: Route alias, is it possible?
body: <p>I have a Vehicle model:</p>
  
  <p><strong>Routes:</strong></p>
  
  <pre><code>map.resources :vehicles, :has_many =&gt; :suppliers
  </code></pre>
  
  <p>Everything works great, but Vehicle has a boolean attribute <strong>is_truck</strong>. I want to make an Alias so I can get the same resources filtering only trucks, I tried with:</p>
  
  <p><strong>Routes:</strong></p>
  
  <pre><code>map.trucks '/trucks', :controller =&gt; :vehicles, :action =&gt; :index, :is_truck =&gt; true
  map.trucks '/trucks/by_supplier/:supplier', :controller =&gt; :vehicles, :action =&gt; :index, :is_truck =&gt; true
  </code></pre>
  
  <p>The first one works well, but when I search within a Form the second doesn't work and searches all suppliers.</p>
  
  <p><strong>Controller:</strong></p>
  
  <pre><code>class VehiclesController
     def index
       if params[:supplier]
         @vehicles = Vehicle.all :conditions =&gt; { :is_truck =&gt; params[:is_truck] }
       else
         @vehicles = Vehicle.all
       end
     end
     ...
  end
  </code></pre>
  
  <p><strong>Search Form:</strong></p>
  
  <pre><code>&lt;% form_for :truck, :url =&gt; {:controller =&gt; :trucks, :action =&gt; :index}, :html =&gt; {:method =&gt; :get} do |f| %&gt;
    &lt;% f.text_field :search %&gt;
    &lt;% f.submit 'Search Trucks' %&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>Is it possible to <strong>map.resources</strong> as an alias ?</p>