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)

Monday, July 23 2007
sloppy http://require.errtheblog.co... was committed by Chris Wanstrath at 5:10 AM
old stuff http://require.errtheblog.... was committed by Chris Wanstrath at 5:09 AM
shuffle, fixture_scenarios_with_scena... was committed by Chris Wanstrath at 5:07 AM
Sunday, July 22 2007
70 using with scope_out was updated
  • Chris Wanstrath
    • State changed from new to open
    • Assigned user changed from Chris Wanstrath to Mislav
    by Chris Wanstrath at 3:11 PM
  • Deleted User
    Deleted User created the ticket at 1:29 PM

    I've been using scope_out to define finders on my models

    class Task < ActiveRecord::Base
    
    	scope_out       :recent_incomplete,  	:conditions => {:completed ...
Saturday, July 21 2007
66 Paginate custom finders was updated
  • Mislav
    • State changed from open to invalid
    by Mislav at 2:10 PM

    So, you would like this:

    class User < AR::Base
      def self.find_all_special(options = {})
        with_scope(:find => { :conditions => "...", :order => "..." }) ...
Will Paginate: have :order in with_sc... was committed by Chris Wanstrath at 2:03 PM
Will Paginate: cleanup finder.rb code... was committed by Chris Wanstrath at 2:00 PM
Will Paginate: view helper optimizati... was committed by Chris Wanstrath at 1:53 PM
Friday, July 20 2007
62 Tests not passing was updated
  • August Lilleaas
    August Lilleaas commented at 1:12 PM

    Sounds good. Don't hesitate poking me if you want me to do stuff on my box to figure out whatever you need to figure out about my box.

Thursday, July 19 2007
62 Tests not passing was updated
  • Chris Wanstrath
    • State changed from hold to open
    by Chris Wanstrath at 6:09 PM

    Doh, forgot about this ticket.

    Will look into this -- I have the same setup as you. No clue what the deal is.

58 [PATCH] fixture_scenarios_with_scenario_builder fixes was updated
69 local_cache_for_request doesn't expire correctly was updated
  • Chris Wanstrath
    • State changed from new to open
    by Chris Wanstrath at 6:08 PM
  • Lee Fyock
    Lee Fyock created the ticket at 3:03 PM

    See <http: /> for more info.

    The "cached?" method (down the chain from expire_cache_without_local_cache) calls back to "fetch_cache_with_local_cache", populat...

68 Postal codes starting with '0' are handled improperly was updated
Wednesday, July 18 2007
68 Postal codes starting with '0' are handled improperly was updated
  • Geoffrey Grosenbach
    Geoffrey Grosenbach created the ticket at 10:31 AM

    Steps to reproduce:

    h = HCard.find 'http://simplebits.com/contact'
    puts h.adr.postal_code
    => 1970.0
    

    But the postal code is really '01970'. Is there a way ...

Tuesday, July 17 2007
67 [Will Paginate][Patch] Ajax Support was updated
  • Chris Wanstrath
    • State changed from new to open
    • Assigned user changed from Chris Wanstrath to Mislav
    by Chris Wanstrath at 6:11 PM
  • Florent Piteau
    Florent Piteau created the ticket at 6:06 PM

    Here is a first patch which adds Ajax calls to Will Paginate.

    It can be very useful if you have a lots of models with pagination in the same page. You will on...

add caches/cached method to instances... was committed by Chris Wanstrath at 4:29 PM
66 Paginate custom finders was updated
  • Chris Wanstrath
    • State changed from new to open
    • Assigned user changed from Chris Wanstrath to Mislav
    by Chris Wanstrath at 10:48 AM
  • Andreas Neuhaus
    Andreas Neuhaus created the ticket at 1:57 AM

    I'm having problems using will_paginate with a custom finder method in my models:

    class User < AR::Base
      def find_all_special (options = {})
        with_scope...
Sunday, July 15 2007
65 hash parameters not properly kept in pagination links was updated
  • Mislav
    • State changed from open to invalid
    by Mislav at 4:46 PM

    Changeset [300] adds a test that should fail if this report was true, but passes. I think the bug was in user code.

56 will_paginate multiple collections was updated
  • Chris Wanstrath
    • State changed from open to resolved
    by Chris Wanstrath at 4:44 PM

    (from [300]) WillPaginate: add :param_name option to enable overriding the page parameter name when calling the will_paginate helper. Of course, this defaults ...

WillPaginate: add :param_name option ... was committed by Chris Wanstrath at 4:44 PM
60 paginate_by_sql throwing error was updated
  • Mislav
    Mislav commented at 2:32 PM

    Thanks for the stack trace, it helped a lot. Otherwise I'd bang my head to the keyboard for hours.

    I've worked around your problem which happened because sqls...

  • Chris Wanstrath
    • State changed from open to resolved
    by Chris Wanstrath at 2:28 PM

    (from [299]) Will Paginate: in paginate_by_sql, do sanitize_sql before calling add_limit on the query string. This is because of SQL Sever adapter which does n...

Will Paginate: in paginate_by_sql, do... was committed by Chris Wanstrath at 2:28 PM
59 will_paginate doesn't play nicely with Geokit was updated
  • Vince Wadhwani
    Vince Wadhwani commented at 1:34 PM

    Yeah! Thanks guys!!!

  • Mislav
    • State changed from hold to resolved
    by Mislav at 12:18 PM
  • Vince Wadhwani
    Vince Wadhwani commented at 8:55 AM

    Ok, I'm using v296 of will_paginate and v37 of geokit. This is the call in my show controller:

    @places = Address.paginate :per_page => 10, :page => params[:p...

54 ignoring order when paginating a has_many relation was updated
  • Chris Wanstrath
    • State changed from open to resolved
    by Chris Wanstrath at 12:03 PM

    (from [298]) Will Paginate: association finders are finally tackled. Will Paginate now works properly on stable Rails when it comes to association pagination l...

Will Paginate: association finders ar... was committed by Chris Wanstrath at 12:03 PM
64 [will_paginate] removing :include can break pagination was updated
  • Chris Wanstrath
    • State changed from new to resolved
    by Chris Wanstrath at 10:42 AM

    This was my mistake, Mislav fixed in [297].

Saturday, July 14 2007
65 hash parameters not properly kept in pagination links was updated
  • Mislav
    Mislav created the ticket at 12:47 AM

    Akbar reports:

    If he uses

    <input id="search_key" name="search[key]" type="text" />
    

    ... the search key is not properly preserved in pagination links. This w...

Friday, July 13 2007
64 [will_paginate] removing :include can break pagination was updated
  • Grant Goodale
    Grant Goodale commented at 2:38 PM

    For example:

    Topic.paginate :include => :author, :conditions => ["authors.status = ?", 'active'], :page => 1

    Or is there a better way to accomplish this sort...

  • Grant Goodale
    Grant Goodale created the ticket at 2:35 PM

    Changeset 295 removed the :include clause from the count() query. But what if I used the :included table in my :conditions?

62 Tests not passing was updated
  • August Lilleaas
    August Lilleaas commented at 10:06 AM

    I'm running on OS X 10.4, using a self-compiled ruby 1.8.6. Anything else you need to know about it?

  • Chris Wanstrath
    • State changed from resolved to hold
    by Chris Wanstrath at 10:01 AM

    So, our upside down exclamation points do not match.

    What kind of system are you running on?

  • August Lilleaas
    August Lilleaas commented at 2:14 AM

    Yep, at least the relative path thingies. Still got these, though:

    Finished in 0.239007 seconds.

    1) Failure:

    test_spec:163

    <"\302\241Bienvenido amigo!"> ex...

54 ignoring order when paginating a has_many relation was updated
  • Mislav
    Mislav commented at 6:43 AM

    Testing ... something is funny with responding to this ticket

  • Mislav
    Mislav commented at 6:37 AM

    Chris: sorry for not posting this earlier, I found it out 2 days ago but couldn't fix it ... Paginating finds on associations (user.projects.paginate) are curr...

  • Chris Wanstrath
    Chris Wanstrath commented at 1:11 AM

    I can confirm this test breaks for me, as well. ORDER is not being added to the SQL query.

    >> User.find(:first).projects.paginate(:page => 1)
      User Load (0...
expected should be :order http://re... was committed by Chris Wanstrath at 12:51 AM
will_paginate: also dont want :includ... was committed by Chris Wanstrath at 12:15 AM
57 Will paginate breaks with :select and sum() was updated
will_paginate: dont need :select in c... was committed by Chris Wanstrath at 12:15 AM
Thursday, July 12 2007
59 will_paginate doesn't play nicely with Geokit was updated
58 [PATCH] fixture_scenarios_with_scenario_builder fixes was updated
  • Chris Wanstrath
    • State changed from new to open
    by Chris Wanstrath at 11:46 PM

    I don't get why we need to duplicate information.

    Is the reason because if you've fixtures/users/users.yml and fixtures/users/unauthorized/users.yml, only one...

63 Setting ttl in config/memcached.yml has no effect was updated
  • Chris Wanstrath
    • State changed from new to resolved
    by Chris Wanstrath at 11:42 PM

    Looks like this code never made it from acts_as_cached into cache_fu. Whoops.

    Fixed in [293], thanks.

cache_fu: make sure we use the global... was committed by Chris Wanstrath at 11:42 PM