ActiveSupport::OrderedHash won't work here.
On 8/22/07, Jatinder Singh <[EMAIL PROTECTED]> wrote:
> Oh yes, ordering is a problem with this approach. String works well
> unless we want to have ordered hash here.
>
>
>
> -Jatinder
>
> On 8/22/07, Mislav Marohnić <[EMAIL PROTECTED]> wrote:
> > On 8/22/07, James Adam <[EMAIL PROTECTED]> wrote:
> > >
> > > On 8/22/07, Jatinder Singh <[EMAIL PROTECTED]> wrote:
> > > > Wouldn't It more be more inuitive to say something like
> > > > :order => { :name => :asc, :created_at => :desc}
> > >
> > > Intuitively this is a nice idea, but it will cause problems because
> > > the order of columns in an ORDER BY clause is significant, and yet
> > > there's no explicit ordering within a hash.
> >
> > James is right. Also, conditions can be represented as a bunch of key-value
> > pairs, but that doesn't fit well for order clauses.
> >
> >
> > >
> >
>
> >
>
--
Cheers!
- Pratik
http://m.onkey.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" 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/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---