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.

Activity (RSS)

Wednesday, June 11 2008
229 named_scope and limited eager loading was updated
  • Tekin
    Tekin commented at 7:44 AM

    No problem. I'm hacking my way around it in a quite horrible way for the moment!

  • Mislav
    • State changed from new to open
    • Assigned user changed from Chris Wanstrath to Mislav
    by Mislav at 5:03 AM

    I still haven't looked into this. Promise I will

222 Edge Rails and mislav-will_paginate gem don't work together was updated
  • Mislav
    • State changed from open to resolved
    by Mislav at 5:16 AM

    Closing as resolved. The next will_paginate gem version 2.5 will not have any dependencies. Until then, if you're using vendored Rails, use vendored will_pagin...

215 will_paginate causing SystemStackError on has_many :through associations was updated
  • Mislav
    • State changed from new to resolved
    • Assigned user changed from Chris Wanstrath to Mislav
    by Mislav at 5:13 AM
220 has many :through causes "Stack level too deep error" was updated
  • Mislav
    • State changed from open to resolved
    by Mislav at 5:13 AM
223 Infinite loop in will_paginate with has_many :through was updated
  • Mislav
    • State changed from new to open
    • Assigned user changed from Chris Wanstrath to Mislav
    by Mislav at 5:13 AM

    See #215 and #220. Are you using older version of will_paginate? The newest version is "mislav-will_paginate" 2.3.2 from http://gems.github.com/

221 Will_paginate barfs in project with no ActiveRecord was updated
  • Mislav
    • State changed from new to invalid
    • Assigned user changed from Chris Wanstrath to Mislav
    by Mislav at 5:09 AM

    Use the latest gem. You can see by this code that it doesn't call WillPaginate.enable unless both ActiveRecord and ActionController are present.

    If you don't ...

228 add pagination info to array.to_xml ? was updated
  • Mislav
    • Assigned user changed from Chris Wanstrath to Mislav
    • State changed from new to open
    • Title changed from new feature: add pagination info to array.to_xml ? to add pagination info to array.to_xml ?
    by Mislav at 5:05 AM

    This would be useful for ActiveResource. I'm beginning to officially support this in the "agnostic" branch on GitHub. Feel free to look at it.

    I'll try to mak...

Friday, June 06 2008
220 has many :through causes "Stack level too deep error" was updated
  • Vince Wadhwani
    Vince Wadhwani commented at 10:18 AM

    Hi Mislav,

    Bah, I think I may have accidentally uninstalled the gem which would explain the errors I got and why I unpacked/copied. Sorry.. in any case, than...

  • Mislav
    Mislav commented at 2:10 AM

    Hey Vince,

    You could have just done this:

    script/plugin install git://github.com/mislav/will_paginate.git

    But why did you have to do it? Latest "mislav-will...

Thursday, June 05 2008
220 has many :through causes "Stack level too deep error" was updated
  • Vince Wadhwani
    Vince Wadhwani commented at 5:24 PM

    I unpacked the gem and manually copied over the contents into my projects vendor/plugin.. probably not the best way to do it but it does work for me now (Ruby ...

Tuesday, June 03 2008
220 has many :through causes "Stack level too deep error" was updated
229 named_scope and limited eager loading was created
  • Tekin
    Tekin created the ticket at 6:25 AM

    As described here, eager loaded tables are dropped when using will_paginate with named_scope.

    Application code: http://pastie.org/207771

    Log file showing err...

228 new feature: add pagination info to array.to_xml ? was updated
  • ycheng
    ycheng commented at 6:23 AM

    oops, the two attachment are the same, feel free to delete one. sorry.

  • ycheng
    ycheng commented at 6:22 AM

    attachment again.

  • ycheng
    ycheng commented at 6:20 AM

    the attachment.

  • ycheng
    ycheng created the ticket at 6:18 AM

    as paginate return array when render in xml, the pagination information will no be there.

    I add an to_xml function into will_paginate/lib/will_paginate/collec...

Thursday, May 29 2008
227 will_paginate appends more limits to already-limited sql was updated
  • Mislav
    Mislav commented at 10:25 AM

    I'll have to see how you are making the call to will_paginate and how is it

    integrated in the controller.

    http://pastie.org

    On Thu, May 29, 2008 at 5:52 PM,...

  • Adrian
    Adrian created the ticket at 8:51 AM

    I have a SQL statement which UNIONs 4 SQLs together.

    The SQL also contains a GROUP BY and an ORDER BY.

    When clicking Next in the view page, end up with a SQL...

Monday, May 26 2008
200 fixture_scenarios_builder: Building scenario kills migrations version was updated
Friday, May 23 2008
222 Edge Rails and mislav-will_paginate gem don't work together was updated
  • Mislav
    Mislav commented at 11:15 AM

    Thanks. That makes much more sense, and proves rubygems dependencies aren't

    broken.

    Use my workaround until I push a release that doesn't indicate that

    acti...

  • Denis Barushev
    Denis Barushev commented at 10:38 AM

    Yep, Edge Rails in vendor/rails and mislav-will_paginate-2.3.2.gem from github.

  • Ryan Bates
    Ryan Bates commented at 10:34 AM

    perhaps it has something to do with having edge rails installed in "vendor/rails" and not having the rails 2.0.991 gem installed? I'll do some more testing.

  • Mislav
    • State changed from new to open
    by Mislav at 8:47 AM

    Dudes, ur rubygems is broken!

    I can't imagine how this could happen. I'm using Rails 2.0.911 gems and can't reproduce it.

    Workarounds:

    • script/plugin instal...
Thursday, May 22 2008
222 Edge Rails and mislav-will_paginate gem don't work together was updated
  • Ryan Bates
    Ryan Bates commented at 9:51 PM

    I'm getting the same error. Any update on this? Is there a temporary solution I could use in the meantime?

Tuesday, May 20 2008
67 Ajax Support was updated
  • Aketzu
    Aketzu commented at 10:57 PM

    I solved it with little patch to LinkRenderer.page_link_or_span()

        def page_link_or_span(page, span_class, text = nil)
          text ||= page.to_s
          cla...
Monday, May 19 2008
222 Edge Rails and mislav-will_paginate gem don't work together was updated
  • Denis Barushev
    • Assigned user changed from Chris Wanstrath to Mislav
    by Denis Barushev at 11:24 PM
  • Denis Barushev
    Denis Barushev commented at 5:03 AM
    denis@sempron:~> gem list | grep will_paginate
    mislav-will_paginate (2.3.2)
    denis@sempron:~> gem -v
    1.1.1
    denis@sempron:~> ruby -v
    ruby 1.8.6 (2007-06-07 p...
  • Denis Barushev
    Denis Barushev created the ticket at 5:00 AM

    I can't start server on rails edge empty project with _mislav-will_paginate-2.3.2_ and _require 'will_paginate'_ in the end of _config/environment.rb_:

    denis@...
Friday, May 16 2008
221 Will_paginate barfs in project with no ActiveRecord was created
  • ronin-20496 (at lighthouseapp)
    ronin-20496 (at lighthouseapp) created the ticket at 8:21 AM

    If you try to use will_paginate in a Rails project that does not use ActiveRecord, for example:

    Rails::Initializer.run do |config|

    #

    1. Project is not current...
198 Removing :include option from count query when it's possible was updated
  • Mislav
    Mislav commented at 4:03 AM

    I've done a simple test using Mocha

    http://github.com/mislav/will_pa...

  • Denis Barushev
    Denis Barushev commented at 3:48 AM

    I now about test, but there are some problems. This patch is about internals of #wp_count. I dunno how to test this. Test generated query is not good idea and ...

  • Mislav
    • State changed from new to open
    • Title changed from [PATCH] Removing :include option from count query when it's possible to Removing :include option from count query when it's possible
    by Mislav at 3:27 AM

    This looks good, but next time please make a test :)

    Also, with Lighthouse "patch" tag we don't need "[PATCH]" in subject anymore (that was a Trac thing).

    Th...

220 has many :through causes "Stack level too deep error" was updated
  • Mislav
    • State changed from new to open
    • Assigned user changed from Chris Wanstrath to Mislav
    by Mislav at 3:21 AM

    Thanks for the short and complete bug report. This looks serious, I'm going to investigate. First thing I'll try to do is a failing test based on your setup.

219 ActiveRecord::StatementInvalid when using custom select and having was updated
  • Mislav
    • State changed from new to open
    • Assigned user changed from Chris Wanstrath to Mislav
    by Mislav at 3:16 AM

    Hey asherwood,

    Indeed, you can provide your own count:

    @results = Page.paginate :all, :select => "...",
      :group => 'pages.id HAVING distance < 300',
      :pa...
217 Will paginate causes exception when given non-numerical :page was updated
  • Mislav
    • State changed from new to invalid
    • Assigned user changed from Chris Wanstrath to Mislav
    by Mislav at 3:06 AM

    Hey,

    It's supposed to throw an error so you can handle it as you wish in your controllers. In Rails 2, apps respond with 404 instead of 5xx, but you can overr...

Thursday, May 15 2008
220 has many :through causes "Stack level too deep error" was created
  • iamjwc (at gmail)
    iamjwc (at gmail) created the ticket at 6:50 PM
    class Program < AR::Base
      has_many :sessions, :through => :components
    end
    
    Program.find(:first).sessions # => [#<Session:...>, #<Session:...>]
    
    Program.f...
198 [PATCH] Removing :include option from count query when it's possible was updated
  • Denis Barushev
    • Title changed from "#paginate :include => something": removing joins from count query when it's possible to [PATCH] Removing :include option from count query when it's possible
    by Denis Barushev at 12:02 PM

    I've done this. See patch.

Wednesday, May 14 2008
219 ActiveRecord::StatementInvalid when using custom select and having was created
  • asherwood
    asherwood created the ticket at 2:06 AM

    When using a custom select statement like the one provided in the following example

    @results = Page.paginate(:all,

    :select => "pages.*, ((ACOS(SIN(#{locatio...

Wednesday, May 07 2008
207 protected method `url_for' called for LinkRenderer was updated
Tuesday, May 06 2008
215 will_paginate causing SystemStackError on has_many :through associations was updated
Monday, May 05 2008
216 Sake not working with JRuby was created
  • Tim Dysinger
    Tim Dysinger created the ticket at 5:06 PM

    Duece:website tim$ jgem install sake

    ...snip...

    Successfully installed RubyInline-3.6.7

    Successfully installed ParseTree-2.1.1

    Successfully installed ruby2...

Sunday, May 04 2008
215 will_paginate causing SystemStackError on has_many :through associations was updated
  • E. James O'Kelly
    E. James O'Kelly commented at 6:09 PM

    I am experiencing the same result. Here is my pagination code that throws the issue. It is when dealing with a model that has a has_many :through association p...

Friday, May 02 2008
215 will_paginate causing SystemStackError on has_many :through associations was created
  • Patrick
    Patrick created the ticket at 2:19 PM

    On edge rails (commit 64092de25727c1943807bf5345107d90428135a0 if that helps), using latest will_paginate. Added named_scopes to my Product model which are w...

Wednesday, April 30 2008
214 Don't remove schema_migrations on Rails 2.1 was created
  • Andrew Bennett
    Andrew Bennett created the ticket at 8:51 AM

    Not a big change, but auto_migrations removes the schema_migrations table on a Rails 2.1+ project.

    The patch is attached, or you can just merge with my fork a...

Tuesday, April 29 2008
213 Can't connect to host 'errtheblog.com': Connection refused was created
  • Elliott Blatt
    Elliott Blatt created the ticket at 8:38 AM

    ./script/plugin install svn://errtheblog.com/svn/plugins/cache_fu

    Is this a temporary condition?

Monday, April 28 2008
212 :find_by with cache_fu was created
  • Lee Iverson
    Lee Iverson created the ticket at 1:56 PM

    The current setup for :find_by ends up causing problems with get_caches. I've specified :find_by => :name in one of classes and was constantly puzzled when ge...

Saturday, April 26 2008
210 ignore bad page numbers was updated
  • Mislav
    • Assigned user changed from Chris Wanstrath to Mislav
    • State changed from new to hold
    by Mislav at 10:20 AM

    It is supposed to bomb. It's invalid input, after all. The only way it could happen is nasty spiders or corrupted links.

    If it defaulted to page 1, then the f...

Thursday, April 24 2008
211 Tests seem to be broken was created
  • Allan Cochrane
    Allan Cochrane created the ticket at 2:51 PM

    As described in the Google group, the tests seem to be broken, especially miffed abouth the #size method 'cos that buggers up some of my other plugins (e.g. so...