Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
how do i dry this up
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
adam  
View profile  
 More options Jul 6 2010, 7:46 am
From: adam <adam.akh...@gmail.com>
Date: Tue, 6 Jul 2010 04:46:27 -0700 (PDT)
Local: Tues, Jul 6 2010 7:46 am
Subject: how do i dry this up
hi all, im gettting to grips with authlogic and its great.

In one part of my app im using authlogic to create a timeline for my
users.
Unfortunately there are multiple valid sets of criteria  so im
currently buiding up my array over several lines using searchlogic. Id
much rather be able to do a one liner with a few ORs.

here is a snippet

g...@gist.github.com:494f7e722c07abc1714c.git

2 things i dont like with this are

1) im sure this isnt good for db performance due to multiple calls
2) if i want to limit the results to 10 or order by created_at id have
to do this after fectching all the results using sort_by.  Im sure if
I could use limit or acend_by_created_at tagged on the end of a one
liner would be more efficient.

The question is is it possible and if so how?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »