Hi,
do not know if this is still an issue, but you can create a view which
includes a "virtual column" with a unique key.
--
Volker
On Oct 21, 6:29 pm, Maksim Ananjev <[EMAIL PROTECTED]> wrote:
> am developing RoR application that works with legacy database and
> uses ActiveScaffold plugin for fancy CRUD interface.
>
> 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:
>
> ActionView::TemplateError (Could not find column contact,type) on
> line #3 of ven
> dor/plugins/active_scaffold/frontends/default/views/_form.rhtml:
> 1: <ol class="form" <%= 'style="display: none;"' if
> columns.collapsed -%>>
> 2: <% columns.each :for => @record do |column| -%>
> 3: <% if is_subsection? column -%>
> 4: <li class="sub-section">
> 5: <h5><%= column.label %> (<%=
> link_to_visibility_toggle(:default_visible =
> > !column.collapsed) -%>)</h5>
> 6: <%= render :partial => 'form', :locals => { :columns =>
> column } %>
>
> vendor/plugins/active_scaffold/lib/data_structures/sorting.rb:
> 16:in `add'
>
> while having in cotroller code smth like:
>
> set_primary_keys :contact, :type
>
> I highly appreciate any idea how I can get composite keys capability
> with ActiveScaffold.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---