#344 ✓resolved
Obie

arel_table not covered anywhere

Reported by Obie | July 9th, 2010 @ 02:38 PM | in The Rails 3 Way

as in the following code snippet

pt = Post.arel_table
current = pt.where(pt[:created_at].gt(1.day.ago)).project(pt[:id])

Comments and changes to this ticket

  • Obie

    Obie September 9th, 2010 @ 05:30 PM

    • Assigned user set to “Durran Jordan”

    While you're in Chapter 5 might as well add this somewhere. Shouldn't be too hard.

  • Durran Jordan

    Durran Jordan September 9th, 2010 @ 08:07 PM

    • State changed from “new” to “resolved”

    I added it to the end of the where clauses section since it was not obvious to me where it should go... Its only there to generate custom SQL - so maybe by the find_by_sql section? I guess you probably already have an idea of where you want it.

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket

Pages