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)

Thursday, August 27 2009
120 Association with finder_sql raises TypeError was updated
  • John Wood
    John Wood commented at 4:38 PM

    Hi everybody. Thanks for providing a solution to this issue.

    I took the code you guys put together here, committed it to my will_paginate fork, and submitted a ...

Wednesday, August 19 2009
120 Association with finder_sql raises TypeError was updated
  • Cameron Booth
    Cameron Booth commented at 1:42 AM

    I might have found a cleaner solution, build off of what you've got Adam, combined with a few other hints. This appears to be working, though I have only given ...

Tuesday, July 21 2009
Home was edited by Mislav in will_paginate library at 11:24 PM
Saturday, June 27 2009
272 per_page and composite_primary_keys was updated
  • Mislav
    • State changed from open to invalid
    by Mislav at 4:02 PM

    No prob :) Your duty is to report bugs and mine to find out where they are.

    Keep being involved and projects maintainers will always be grateful.

Friday, June 26 2009
272 per_page and composite_primary_keys was updated
  • mephux
    mephux commented at 11:37 PM

    You are correct the issue was unrelated. I am sorry to have wasted your time and thank you for the eager tip. This ticket is good to close.

  • Mislav
    Mislav commented at 12:46 PM

    I don't understand. First of all, you said:

    Event.all.paginate(...)
    

    This is wrong. It should be Event.paginate(), because Event.all loads all the records and ...

Thursday, June 25 2009
272 per_page and composite_primary_keys was updated
  • mephux
    mephux commented at 10:41 PM

    Ok that looked horrible sorry.

    
    Processing EventsController#index (for 127.0.0.1 at 2009-06-25 03:53:56) [GET]
      Event Load (0.3ms)   SELECT * FROM `event` ORD...
  • mephux
    mephux commented at 10:37 PM

    The plugin basically just adds composite PK support as transparently as possible.

    As for the SQL syntax:

    Code:

    @events ||= Event.all.paginate(:page => params[:p...

  • Mislav
    • State changed from new to open
    by Mislav at 5:43 PM

    You'll have to put this into SQL terms for me. What does the plugin do? What kind of SQL gets generated? Where is it wrong? How it should be correct?

    After supp...

  • mephux
    mephux commented at 9:59 AM

    Ok, I have been working on this all night and can't seem to think of an easy fix. If you need any type of data please let me know.

  • mephux
    mephux created the ticket at 3:42 AM

    It seems per_page breaks when using the composite_primary_keys plugin. Seems to put a limit for both ids and looping through both. So :per_page => 5 would turn ...

273 Passing nil to paginate_by_* fails was created
  • Nick Hoffman
    Nick Hoffman created the ticket at 4:04 AM

    Hi guys. I'm using:
    * will_paginate 2.3.8 * Rails 2.3.2 * Ruby 1.8.7

    I noticed that searching for a nil value using #paginate_by_* fails with an error.

    First, i...

Wednesday, June 10 2009
231 Option to omit page=1 parameter on page one was updated
  • ippa
    ippa commented at 8:05 PM

    This is a good idea. It looks better and it avoids 2 different urls having the exact same content which isn't optimal for searchengines.

Tuesday, June 02 2009
release v2.3.11 bugfix http://github.... was committed by Mislav Marohnić at 7:52 PM
require core_ext before trying to use... was committed by Mislav Marohnić at 7:52 PM
Friday, May 29 2009
271 Add support for i18n was created
  • Paul Springett
    Paul Springett created the ticket at 12:26 PM

    The ability to localize the view helpers without having to overwrite the helper methods (such as page_entries_info) would be awesome

Wednesday, May 27 2009
270 :include brings back more records then I specify per page was updated
  • Brian
    Brian commented at 11:13 PM

    Thanks for the quick response. That makes sense. I'll update my code.

  • Mislav
    • State changed from new to invalid
    by Mislav at 11:09 PM

    It's because you're basically writing this:

    MspLocation.all(...).paginate(...)
    

    You're first loading all the records, then paginating that array. Wrong? Yes.

    T...

  • Brian
    Brian created the ticket at 10:35 PM

    If I call paginate on a Model.all with an :include specified, the query that brings back the included records is pulling back all the records instead of only th...

Thursday, May 21 2009
237 paginate_by_sql fails when using Oracle and the jdbc driver. was updated
release 2.3.10 fix for MySQL http://g... was committed by Mislav Marohnić at 11:34 PM
count_by_sql: don't use table alias w... was committed by Mislav Marohnić at 11:34 PM
hit the database in `paginate_by_sql`... was committed by Mislav Marohnić at 11:34 PM
Add back "AS count_table" alias to `p... was committed by Mislav Marohnić at 11:34 PM
Wednesday, May 20 2009
267 install will_paginate plug in was updated
  • Mislav
    • State changed from new to invalid
    by Mislav at 11:44 AM
269 Problem with Ruby 1.9.x was updated
  • Mislav
    • State changed from new to resolved
    by Mislav at 11:42 AM

    thanks for reporting. I have implemented checks in both master and agnostic branches

Wednesday, May 06 2009
269 Problem with Ruby 1.9.x was created
  • Anton Ageev
    Anton Ageev created the ticket at 5:26 PM

    In Ruby 1.9.x WillPaginate::Finder::ClassMethods#wp_count doesn't remove :include options in following code:

    # forget about includes if they are irrelevant (Ra...
Thursday, April 23 2009
237 paginate_by_sql fails when using Oracle and the jdbc driver. was updated
  • nathanvda
    nathanvda commented at 5:47 PM

    We switched to the oracle-enhanced and also bumped into this error. Squirrelbone gave a good explanation. I would just adjust the code as mentioned above too:

    u...

Tuesday, April 21 2009
268 Exception in Rails 2.3.2 when using :group was updated
  • Paco Benavent
    Paco Benavent commented at 3:30 PM

    Thank you for your response!

    I made a quick fix that worked for me, changing line 82 in finder.rb

    from:

    
        pager.replace(send(finder, *args) { |*a| yield(*a...
Friday, April 17 2009
268 Exception in Rails 2.3.2 when using :group was updated
  • Mislav
    • State changed from new to open
    by Mislav at 8:25 PM

    Good catch. Will try to fix soon

  • Paco Benavent
    Paco Benavent created the ticket at 12:58 PM

    Using will_paginate-2.3.8 with Rails 2.3.2 raises an exception when using :group

    Example:

    
     User.paginate :all, :finder => 'count', :group => 'country', :page...
Thursday, April 02 2009
267 install will_paginate plug in was updated
  • Mislav
    Mislav commented at 11:30 AM

    There is some problem in your Seq model.

    Look at "app/models/seq.rb" at line 7. I don't know what's there, but I guess there is some reference to "Post". Rails ...

  • thiti
    thiti created the ticket at 9:03 AM

    Hello , i stall will_paginate plug in by using

    mkdir vendor/plugins/will_paginate wget -nv http://github.com/mislav/will_pa... -O- | \tar xzv -C vendor/plugin...

Wednesday, April 01 2009
266 Rendering pagination via Ajax causes the links to point to ajax method was updated
  • Mislav
    • State changed from new to invalid
    by Mislav at 12:02 PM
  • Michael Larkin
    Michael Larkin commented at 4:12 AM

    Yep, that was exactly what I needed, thanks! Consider this one a non-bug.

Tuesday, March 31 2009
266 Rendering pagination via Ajax causes the links to point to ajax method was updated
  • Michael Larkin
    Michael Larkin commented at 11:49 PM

    Mislav,

    Apparently not closely enough, sorry!

    Thanks, I'll give that a whirl!

  • Mislav
    Mislav commented at 11:45 PM

    Hey Mike,

    How about:

    
    <%= will_paginate @collection, :params => { :action => 'index' } %>
    

    Didn't you read the API docs?

  • Michael Larkin
    Michael Larkin commented at 8:49 PM

    I guess what I'm driving at is I'd like an option to set the pagination URL:

    @@@ Ruby <%= will_paginate :orders, :url => page_orders_path %>

    
    
  • Michael Larkin
    Michael Larkin created the ticket at 4:07 PM

    I use will_paginate in my application to page using non-ajaxy requests. However, the delete method in my grid is ajaxy, and replaces the entire grid (including ...

237 paginate_by_sql fails when using Oracle and the jdbc driver. was updated
  • Mislav
    Mislav commented at 11:27 PM

    They probably don't. I will throw this out the window soon, so you guys don't have any more problems

  • chobomuffin
    chobomuffin commented at 2:52 AM

    I am also experiencing this problem with the Oracle Enhanced Adapter. Adding 'oracleenhanced' to the following seemed to work; unless ['oracle', 'oci'].include?...

Wednesday, March 25 2009
261 has_many through uniq generates invalid sql was updated
  • Mislav
    • State changed from open to invalid
    by Mislav at 12:29 PM

    Yeah. It's an ActiveRecord issue and it's being actively worked on

Tuesday, March 24 2009
261 has_many through uniq generates invalid sql was updated
Saturday, March 21 2009
265 Incorrect counts in rails 2.3 was updated
  • Mislav
    • State changed from duplicate to invalid
    by Mislav at 11:36 PM

    Oops, that ticket is only related to this problem. I meant to say that this was already reported on the mailing list.

    In any case, we have to see what Rails wil...

  • Mislav
    • State changed from new to duplicate
    by Mislav at 11:34 PM

    This is a bug in Rails.

    See previous ticket, #264

  • Diegorv
    Diegorv commented at 10:01 PM

    The same code works right in Rails 2.2

  • Diegorv
    Diegorv created the ticket at 10:01 PM

    I have this code

    
    def self.completa(estado_id, cidade_id, bairro_id, segmento_id, pagina, limit = 5)
    campos_padrao.estado(estado_id).cidade(cidade_id).bairro...
Friday, March 13 2009
219 ActiveRecord::StatementInvalid when using custom select and having was updated
  • Greg
    Greg commented at 11:17 PM

    untested hack that can be added to wp_count in will_paginate/lib/will_paginate/finder.rb to generate proper SQL.

    
            if count_options[:group] and count_o...
Wednesday, March 11 2009
previous/next links now use the left/... was committed by Mislav Marohnić at 11:02 PM
Monday, March 09 2009
will_paginate v3.0 ("agnostic") was updated by Mislav at 5:31 PM
&nbsp;
5 of 6 tickets remain in this milestone