title: Linking to search results with Ruby
body: <p>I'm a complete novice in Ruby and Nanoc, but a project has been put in my lap. Basically, the code for the page brings back individual URLs for each item linking them to the manual. I'm trying to create a URL that will list all of the manuals in one search. Any help is appreciated.</p>
  
  <p>Here's the code: </p>
  
  <pre><code>&lt;div&gt;
    &lt;%
      manuals = @items.find_all('/manuals/autos/*')
        .select {|item| item[:tag] == 'suv' }
        .sort_by {|item| item[:search] }
  
      manuals.each_slice((manuals.size / 4.0).ceil).each do |manuals_column|
    %&gt;
      &lt;div&gt;
        &lt;% manual_column.each do |manual| %&gt;
          &lt;div&gt;
            &lt;a href="&lt;%= app_url "/SearchManual/\"#{manual[:search]}\"" %&gt;"&gt;
              &lt;%= manual[:search] %&gt;
            &lt;/a&gt;
          &lt;/div&gt;
        &lt;% end %&gt;
      &lt;/div&gt;
    &lt;% end %&gt;
  &lt;/div&gt;
  </code></pre>