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)

Friday, September 12 2008
205 Problem with distinct table_name.* was updated
  • Mislav
    • State changed from open to resolved
    • Tag set to count, sql, will_paginate
    by Mislav at 5:08 PM

    Solved in 5adc2de1b9bd2bc90a3852de3b0dff90bb44d58f

198 Removing :include option from count query when it's possible was updated
  • Mislav
    • State changed from open to resolved
    by Mislav at 5:07 PM

    This has been long resolved (fix present in both master and agnostic branch)

Wednesday, September 03 2008
198 Removing :include option from count query when it's possible was updated
  • Peter
    Peter commented at 10:15 AM

    Nevermind, it was part of my model association. I actually don't need the patch, thanks.

  • Peter
    • Tag set to count, patch, will_paginate
    by Peter at 10:05 AM

    I just applied this patch but it is still doing the include in the count_all breaking my query because it's also doing an INNER JOIN duplicating a table name.

Tuesday, September 02 2008
243 Problem with :inner_window and :outer_window was updated
  • Mislav
    • State changed from new to invalid
    by Mislav at 8:25 AM

    Hey, your observation is correct, but this is not a bug. It's just some undocumented behavior.

    When you go to page N with :inner_window being 2, the visible pag...

Monday, September 01 2008
243 Problem with :inner_window and :outer_window was updated
  • biscazziere
    • Assigned user changed from Chris Wanstrath to Mislav
    by biscazziere at 6:16 PM

    I'm not sure if I get correctly ho to use those settings, but it seems to me that in version 2.3.2 they don't work as expected:

    I do in the view: <%= will_pagin...

  • biscazziere
    biscazziere created the ticket at 6:15 PM

    I'm not sure if I get correctly ho to use those settings, but it seems to me that in version 2.3.2 they don't work as expected:

    I do in the view: <%= will_pagin...

242 Problem with :inner_window and :outer_window was created
  • biscazziere
    biscazziere created the ticket at 6:13 PM

    I'm not sure if I get correctly ho to use those settings, but it seems to me that in version 2.3.2 they don't work as expected:

    I do in the view: <%= will_pagin...

Wednesday, August 27 2008
241 [PATCH] Agnostic branch doesn't work with DataMapper 0.9.6 was updated
  • Mislav
    • State changed from new to resolved
    • Assigned user changed from Chris Wanstrath to Mislav
    by Mislav at 4:19 PM

    Thanks! Applied (somewhat tweaked) in d5ea3c5a9.

    Can you confirm?

235 will_paginate should clone query strings was updated
  • Mislav
    • State changed from open to resolved
    by Mislav at 2:40 PM

    Fixed in commit f54bc39

Tuesday, August 26 2008
241 [PATCH] Agnostic branch doesn't work with DataMapper 0.9.6 was created
  • Paul Barry
    Paul Barry created the ticket at 9:54 PM

    The code in Mislav's agnostic branch doesn't work with DataMapper 0.9.6, but this patch gets it working.

Monday, August 25 2008
230 can't get will_paginate to work was updated
  • Mislav
    • State changed from open to invalid
    by Mislav at 11:01 AM
223 Infinite loop in will_paginate with has_many :through was updated
  • David Eisinger
    David Eisinger commented at 7:21 AM

    I was experiencing this behavior. Upgrading my app from 2.0.2 to 2.1.0 fixed it for me.

49 [sake] sake -e Rakefile fails was updated
  • Harry Vangberg
    • Tag set to sake
    by Harry Vangberg at 3:28 AM

    It might be me, but how do I change this?

    I tried setting $SAFE = 0 and ENV['SAFE'] = 0. Didn't work.

Monday, August 18 2008
150 :select broken with will_paginate was updated
  • Yong Bakos
    • Tag set to count, options, sql, will_paginate
    by Yong Bakos at 1:01 PM

    Actually, this bug still emerges when attempting a SELECT DISTINCT * (:select => 'DISTINCT *')

Wednesday, August 13 2008
240 will_paginate repeat problem was updated
  • Maggie
    Maggie commented at 9:50 AM

    Hi Mislav,

    This is the code that finally worked.

    def project_list

       @cats = Cat.find(params[:id])
       @projects = Project.find(:all, :conditions => ["cat_id ...
Sunday, August 10 2008
240 will_paginate repeat problem was updated
  • Mislav
    Mislav commented at 7:01 PM

    That isn't my code if it breaks. You re-typed it wrong, that's why you have a syntax error. But OK, you fixed it by yourself.

    I'm not getting why aren't there ...

  • Maggie
    Maggie commented at 2:40 PM

    I am on shared server at www.railsplayground.com

    rails -v 2.1.0 will_paginate -v 2.2.2

    Your exact controller code (breaks):

      def project_list
        @ca...
  • Mislav
    Mislav commented at 11:17 AM

    I'm not sure. The line that you have should be working:

    
    @projects = @cats.projects.paginate :page => params[:page], :per_page => 4, :order => 'date DESC'
    

    :pe...

  • Maggie
    Maggie commented at 7:25 AM

    Followed your instructions and am happy to take out the include. I didn't rename the model, but I will not abbreviate in my next fun project which I am now mapp...

  • Mislav
    • State changed from new to invalid
    by Mislav at 6:26 AM

    Ah, I see now where your troubles are.

    Thanks for showing me, I didn't understand that "cats" was short for "categories". In Ruby, it's best to avoid abbreviat...

2 earlier changes…
  • Maggie
    Maggie commented at 5:05 AM

    Hi Mislav, Thanks so much for getting back to me. I realized that I was in the wrong place. I promise I won't do that again. If only I was at the level of troub...

  • Mislav
    Mislav commented at 4:41 AM

    Hey Maggie,

    Unless you think this is a will_paginate bug, support questions are better asked on the "will_paginate" Google group. But now that you asked here, ...

Saturday, August 09 2008
240 will_paginate repeat problem was updated
  • Maggie
    Maggie commented at 6:49 PM

    I'm sorry if this is the wrong place to be asking very beginner questions. I will stop if I this is inappropriate.

    I fixed my controller so that :order is corr...

  • Maggie
    Maggie created the ticket at 2:42 PM

    I am fairly new to RoR, and completely new to will_paginate. I have everything working except one page that is unhappy. In the view I get duplicates of page 1, ...

214 Don't remove schema_migrations on Rails 2.1 was updated
  • Jason Yates
    • Tag set to auto_migrations
    by Jason Yates at 11:00 AM

    Hit this issue today. Thanks.

223 Infinite loop in will_paginate with has_many :through was updated
  • Mislav
    Mislav commented at 2:03 AM

    Nate Wiger: are you using any plugins that hook into ActiveRecord?

Friday, August 08 2008
106 extend Ambition to ActiveRecord associations was updated
  • Ben Hoskings
    • Tag set to ambition
    by Ben Hoskings at 8:40 PM

    I'm really interested in investigating this stuff further; I'm working on a Rails plugin at the moment that is perfect for exploiting this. Arbitrary activereco...

Thursday, August 07 2008
237 paginate_by_sql fails when using Oracle and the jdbc driver. was updated
  • squirrelbone
    squirrelbone commented at 7:05 AM

    Why is that alias needed for any of the databases? I can't find anywhere that it's used. If I were you I'd just remove this block of code:

    @@@ruby unless ['ora...

Wednesday, August 06 2008
237 paginate_by_sql fails when using Oracle and the jdbc driver. was updated
  • Mislav
    • State changed from new to open
    by Mislav at 6:14 AM

    I see now. I'll try to take a different approach of just adding the "AS ..." alias explicitly to databases which need it.

Tuesday, August 05 2008
237 paginate_by_sql fails when using Oracle and the jdbc driver. was updated
  • squirrelbone
    squirrelbone commented at 3:42 PM

    Example of what happens with Oracle. Since

    count_query = "SELECT COUNT(*) FROM (#{count_query})"
    unless ['oracle', 'oci'].include?(self.connection.adapter_na...
Monday, August 04 2008
237 paginate_by_sql fails when using Oracle and the jdbc driver. was updated
  • Mislav
    • Tag changed from will_paginate to oracle, will_paginate
    by Mislav at 8:32 AM

    Interesting. And how will removing those lines of code fix the problem with Oracle?

Friday, August 01 2008
239 acts_as_textiled autolinking breaks was created
  • Tekin
    Tekin created the ticket at 9:50 AM

    I installed acts_as_textiled from github for a fresh app, it seems the new autolinking feature breaks RedCloths' standard link formatting, e.g. A Link.

    Sorry ...

Wednesday, July 23 2008
238 problem with decimal columns was created
  • Deleted User
    Deleted User created the ticket at 3:00 AM

    I have the following in schema.rb:

    t.decimal "balance", :precision => 8, :scale => 2, :default => 0.0

    Strangely auto_migrations created the column in mysql ...

Saturday, July 19 2008
223 Infinite loop in will_paginate with has_many :through was updated
  • vamsee
    vamsee commented at 11:23 PM

    Actually, this problem went away after I updated to mislav-will_paginate. Sidu, I suggest you try the same.

  • Sidu Ponnappa
    Sidu Ponnappa commented at 2:40 PM

    Confirming this bug for any collection actions (each, select, collect, detect...) for a has many through collection.

    SystemStackError: stack level too deep

    /...

Tuesday, July 08 2008
237 paginate_by_sql fails when using Oracle and the jdbc driver. was created
  • squirrelbone
    squirrelbone created the ticket at 12:05 PM

    Why not remove the following block of code altogether?

    unless ['oracle', 'oci'].include?(self.connection.adapter_name.downcase)
      count_query << ' AS count_t...
Monday, July 07 2008
236 Primary Keys Fail was created
  • Jacques Crocker
    Jacques Crocker created the ticket at 4:00 PM

    I seem to get this no matter what I do:

    -- change_column("bj_config", :bj_config_id, :primary_key)

    rake aborted!

    Mysql::Error: #42000Multiple primary key de...

Thursday, July 03 2008
170 [idea] list mode was updated
  • omarqureshi
    • Tag set to will_paginate
    by omarqureshi at 4:36 AM

    Sounds like a good idea, would definately be up for this patch

Wednesday, July 02 2008
202 [PATCH] Add ability to update column attributes was updated
Tuesday, July 01 2008
231 Option to omit page=1 parameter on page one was updated
  • Brad Folkens
    Brad Folkens commented at 3:47 AM

    I needed it for some legacy URL compatibility on a site I am working on where I only recently started using will_paginate.

Sunday, June 29 2008
235 will_paginate should clone query strings was created
  • rgiar
    rgiar created the ticket at 9:39 PM

    to avoid regenerating a query string over and over, i reuse the same query. for example:

    @@my_q = "select custom,other,and,another from cats where blah = 'bla...

Friday, June 27 2008
233 Stack Level Too Deep Issue was created
  • Elliot Larson
    Elliot Larson created the ticket at 8:58 PM

    I'm using Rails 2.1 and and will_paginate 2.3.2. I have the following models:

    class Product < ActiveRecord::Base

    has_many :product_audience_associations

    ha...

Thursday, June 26 2008
232 SystemStackError: stack level too deep was updated
  • Jeannette
    Jeannette commented at 3:20 AM

    FYI:

    I have solved the problem by doing:

    gem uninstall will_paginate

    script/plugin remove will_paginate

    and then gem install mislav-will_paginate -s http:/...

Wednesday, June 25 2008
232 SystemStackError: stack level too deep was created
  • Jeannette
    Jeannette created the ticket at 7:17 AM

    Hi all,

    I got this error on script/console is there any fix ? Below are print stack:

    >> @p = Person.find(106)

    => #

    >> @p.paper

    => [#, #, #, #.....]

    >> @p...

Wednesday, June 18 2008
231 Option to omit page=1 parameter on page one was updated
  • Brad Folkens
    Brad Folkens commented at 2:19 PM

    Updated patch to fix some issues with certain route conditions.

  • Brad Folkens
    Brad Folkens created the ticket at 1:27 PM

    View helper should allow the omission of the page=1 URL parameter with the :omit_page_one option.

230 can't get will_paginate to work was updated
  • kha
    kha commented at 7:49 AM
  • kha
    kha created the ticket at 7:49 AM

    I used will_paginate on an older platform :

    activerecord (1.15.3)

    activesupport (1.4.2)

    acts_as_ferret (0.4.0)

    ferret (0.11.4)

    json (1.1.1)

    radiant (0.6....

Wednesday, June 11 2008
205 Problem with distinct table_name.* was updated
  • Olek Poplavsky
    Olek Poplavsky commented at 9:56 AM

    I had same exact problem for the last half a year, worked around with some ugly monkey patching... Thank you for the clean solution, even if it is not automati...