title: rails, query via url
body: <p>I created my app using the following scaffold</p>
  
  <pre><code>    rails generate scaffold server hostname:string
      rails generate scaffold template remote_template_id:integer remote_template_name:string server:belongs_to
  </code></pre>
  
  <p>I edited the routes to be nested</p>
  
  <pre><code>      resources :servers do 
              resources :templates
        end
  </code></pre>
  
  <p>Now I edited stuff around and my app is working great. However, as this is back-end and not customer facing, I wish to able to run a query such as this, where 'templatename' at the end is an arbitrary string</p>
  
  <pre><code>    http://127.0.0.1:3000/servers/1/templates/find_by_remote_template_name/templatename
  </code></pre>
  
  <p>Essentially, be able to search using the column name remote_template_name .</p>
  
  <p>What would be the best way to approach this problem?</p>