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.

mephux's latest activity

Friday, June 26 2009
272 per_page and composite_primary_keys was updated in will_paginate library
  • 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.

Thursday, June 25 2009
272 per_page and composite_primary_keys was updated in will_paginate library
  • 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...

  • 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 ...