El Miércoles, 30 de Septiembre de 2009, Iñaki Baz Castillo escribió:
> El Miércoles, 30 de Septiembre de 2009, escribió:
> > El Miércoles, 30 de Septiembre de 2009, Sergio Cambra .:: entreCables
> > S.L.
> >
> >  ::.
> >
> > escribió:
> > > On Miércoles, 30 de Septiembre de 2009 09:33:35 Iñaki Baz Castillo
> 
> escribió:
> > > > On 25 sep, 17:10, "Sergio Cambra .:: entreCables S.L. ::."
> > > >
> > > > <[email protected]> wrote:
> > > > > I have tried setting the primary key in the model with
> > > > > set_primary_key, and I haven't need the primary_key option.
> > > > > class Item < ActiveRecord::Base
> > > > >   set_primary_key 'pduid'
> > > > > end
> > > > >
> > > > > Really, I couldn't load items controller until I add
> > > > > set_primary_key If I haven't understood your problem post your
> > > > > tables
> > > >
> > > > Yes, setting "set_primary_key 'pduid'" works, but it's a hack. For
> > > > example, to get the number of rows now it performs this non cool
> > > > query:
> > > >
> > > >   SELECT count(DISTINCT `items`.pduid)
> > >
> > > You are right, I hadn't understood how to use :primary_key option, I
> > > have fixed it now.
> >
> > And how have you fixed the original issue? :)
> 
> Opss, ok, here:
> 
>  
>  http://github.com/activescaffold/active_scaffold/commit/8bb3b2eb570cf0d276
> f9dae89515705b8ca1c699
> 
> :)
> 
> I'll test it right now.

It works, thanks :)

-- 
Iñaki Baz Castillo <[email protected]>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to