title: Composite keys with ActiveScaffold in Ruby On Rails
body: <p>I am developing RoR application that works with legacy database and uses ActiveScaffold plugin for fancy CRUD interface.</p>
  
  <p>However one of the tables of my legacy db has composite primary key. I tried using Composite Keys plugin to handle it, but it seems to have conflicts with ACtiveScaffold: I get the following error:</p>
  
  <pre><code>ActionView::TemplateError (Could not find column contact,type) on line #3 of ven
  dor/plugins/active_scaffold/frontends/default/views/_form.rhtml:
  1: &lt;ol class="form" &lt;%= 'style="display: none;"' if columns.collapsed -%&gt;&gt;
  2:   &lt;% columns.each :for =&gt; @record do |column| -%&gt;
  3:   &lt;% if is_subsection? column -%&gt;
  4:   &lt;li class="sub-section"&gt;
  5:     &lt;h5&gt;&lt;%= column.label %&gt; (&lt;%= link_to_visibility_toggle(:default_visible =
  &gt; !column.collapsed) -%&gt;)&lt;/h5&gt;
  6:     &lt;%= render :partial =&gt; 'form', :locals =&gt; { :columns =&gt; column } %&gt;
  
  vendor/plugins/active_scaffold/lib/data_structures/sorting.rb:16:in `add'
  </code></pre>
  
  <p>while having in model code smth like:</p>
  
  <pre><code>set_primary_keys :contact, :type
  </code></pre>
  
  <p>I highly appreciate any idea how I can get composite keys capability with ActiveScaffold.</p>