#176 √ resolved
Mislav

Implicit :all

Reported by Mislav | January 9th, 2008 @ 03:06 AM

Paul Berry reports:

# Article model
scope_out :published, :conditions => ["published_at is not null"]

# this works:
Article.paginate_published :all, :page => "1"

# raises ActiveRecord::RecordNotFound: Couldn't find Article without an ID
Article.paginate_published :page => "1"

I'm thinking of pushing :all implicitly to any finder, not just "paginate" and "paginate_by_*".

Comments and changes to this ticket

  • Mislav

    Mislav March 30th, 2008 @ 04:51 AM

    • → State changed from “new” to “resolved”

    What was I thinking? This wasn't a good idea at all. I'll put all my hopes on named_scope

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

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

Ticket Bins

People watching this ticket