Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Add sorting to associations

#26

It might have a sense to add ordering to associations, something like

  has_many :comments, :sort_by => :created_at

This parameter should be used by association view to emit keys that sort accordingly to slot specified in :sort_by key.

We also need a key to specify reverse order:

  has_many :comments, :sort_by => :created_at, :reverse => true

Reported by Yurii Rashkovskii · April 29th, 2008 @ 07:24 AM

State: resolved
Milestone: 0.0.3
Assigned to: Yurii Rashkovskii Yurii Rashkovskii

Activity

  1. Yurii Rashkovskii
    Yurii Rashkovskii
    • State changed from new to open

    April 30th, 2008 @ 07:38 AM

  2. Yurii Rashkovskii
    Yurii Rashkovskii
    • State changed from open to resolved

    (from [67e1af5e9563c283137fa759ecbf2778d76f0349]) Initial implementation of has_many association sorting [#26 state:resolved]

    http://github.com/yrashk/stroked...

    April 30th, 2008 @ 07:46 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.