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)

Tuesday, March 04 2008
196 [PATCH] add rel attribute to next and previous link was updated
  • Mislav
    • State changed from open to resolved
    by Mislav at 6:31 AM
  • Mislav
    • State changed from new to open
    by Mislav at 6:02 AM

    Thanks! Can you sign your real name here in the comments, please?

  • swdyh
    swdyh created the ticket at 5:10 AM

    Hi, I wrote a patch to add rel attribute to next and previous link.

    output example:

    « Previous
    
    <a href="/examples?page=3" rel="next">Next &raquo;</a>...
Monday, March 03 2008
195 Changesets @lighthouse was updated
  • Artem Vasiliev
    Artem Vasiliev created the ticket at 1:24 AM

    This is about Lighthouse changesets at this site.

    Lighthouse seem to support changeset viewing, and e.g. ticket #193 references changeset [449] (http://err.li...

Wednesday, February 27 2008
187 count SQL invalid on Oracle was updated
  • Mislav
    Mislav commented at 12:36 PM

    Applied because it's not expensive.

    Note that manually-written count query will probably always perform better, though.

  • SideBurns
    SideBurns commented at 11:07 AM

    I actually used the patch and it works great. I think it would be good to include the patch in future editions of will_paginate. It makes the code much simplie...

  • Jan Berkel
    Jan Berkel commented at 8:29 AM

    ok, changed my code it works now... works fine the way you suggested, sorry about that.

  • Mislav
    • State changed from open to resolved
    by Mislav at 4:59 AM

    oh, so this is a problem with count query generated in paginate_by_sql ...

    Well, that was bound to fail in certain adapters. The real solution is to construct...

  • Jan Berkel
    Jan Berkel commented at 3:43 AM

    try applying the patch i posted, it should work on both oracle and mysql.

    my calling code looks like this

    LoggingEvent.paginate_by_sql(["select * from loggin...

194 Feature Request: total_entries limit was updated
  • Travis
    Travis commented at 8:49 AM

    I looked all over the documentation and was not able to post a discussion anywhere. Should I create a text file and commit it to subversion? Ha! Just kiddin...

  • Mislav
    Mislav commented at 5:16 AM

    It's in the documentation: http://groups.google.com/group/w...

Tuesday, February 26 2008
187 count SQL invalid on Oracle was updated
  • SideBurns
    SideBurns commented at 3:43 PM

    I am having the same problem. Here is what I am doing in my controller:

    @resumes = EmResume.paginate_by_sql ['select * from em_resumes where is_active = ?',1]...

194 Feature Request: total_entries limit was updated
  • Travis
    Travis commented at 1:38 PM

    Where can I find the mailing list?

Saturday, February 23 2008
193 total_entries when first arg is an array was updated
  • Mislav
    • Assigned user changed from Chris Wanstrath to Mislav
    • State changed from new to resolved
    by Mislav at 12:41 PM

    Thanks! Fixed in [449]

186 Minor will_paginate refactoring for LinkRenderer was updated
  • Mislav
    • State changed from open to resolved
    by Mislav at 12:41 PM

    Thanks. Done in [448]

187 count SQL invalid on Oracle was updated
  • Mislav
    • Title changed from select ... AS count_table doesn't work on oracle to count SQL invalid on Oracle
    by Mislav at 4:53 AM

    Hm... that query is generated by ActiveRecord count method. That means the adapter for Oracle might be broken?

    Does every pagination call fail? Can you paste ...

149 Problem with using complex joins was updated
  • Mislav
    • State changed from open to resolved
    by Mislav at 4:48 AM

    OK then.

194 Feature Request: total_entries limit was updated
  • Mislav
    • State changed from new to hold
    • Assigned user changed from Chris Wanstrath to Mislav
    by Mislav at 4:46 AM

    Hey Travis,

    Could you start this discussion on the mailing list? I'm interested hearing about the problems of paginating tens of thousands of records, and wha...

119 helper issue when request.method != :get was updated
  • Mislav
    Mislav commented at 4:41 AM

    Dan: yes, and you shouldn't have POST searches anyway.

Wednesday, February 20 2008
194 Feature: total_entries limit was updated
  • Travis
    Travis created the ticket at 10:11 AM

    In doing pagination, sometimes there are 30k pages because of the amount of entries we have. What I would like to do is to be able to specify an entry limit w...

193 total_entries when first arg is an array was updated
  • mackles
    mackles created the ticket at 4:03 AM

    I have a query that I am trying to paginate where I am passing an array of user ids. Here is a simplified example:

    @rounds = Round.paginate_by_user_id(

    [1,2,...

Tuesday, February 19 2008
119 helper issue when request.method != :get was updated
  • Dan
    Dan commented at 2:48 PM

    so does that mean that the only way to generate links for the results of a post based search is to manually tell the will_paginate helper the url parameters fo...

192 ambitious rdoc improvements was created
  • Josh Nichols
    Josh Nichols created the ticket at 8:02 AM

    A lot of ambition isn't very documented, in terms of rdoc.

    I've created a branch that attempts to cover the higher level stuff.

    See http://github.com/technic...

Saturday, February 16 2008
106 extend Ambition to ActiveRecord associations was updated
  • Grant Rodgers
    Grant Rodgers commented at 5:01 PM

    Pretty simple really, I just replaced the contents of the define_method block in collection_reader_method with

    reflection.klass.query_context.select { |entity...

  • Chris Wanstrath
    • State changed from new to open
    by Chris Wanstrath at 3:32 AM

    Grant, it might be even easier to accomplish this now.

    Can you post your old code?

190 Support nil? was updated
191 Naming conflict with RSpec was updated
  • Chris Wanstrath
    • State changed from new to open
    by Chris Wanstrath at 3:45 AM

    I guess we could call our `context` something else. I suppose test/spec does the same thing, but for some reason it hasn't affected us. Maybe because of the ...

113 empty? on associations was updated
187 select ... AS count_table doesn't work on oracle was updated
  • Chris Wanstrath
    • State changed from new to open
    • Assigned user changed from Chris Wanstrath to Mislav
    by Chris Wanstrath at 3:29 AM
186 Minor will_paginate refactoring for LinkRenderer was updated
  • Chris Wanstrath
    • State changed from new to open
    • Assigned user changed from Chris Wanstrath to Mislav
    by Chris Wanstrath at 3:29 AM
189 first always returns array was updated
  • Chris Wanstrath
    • State changed from new to resolved
    by Chris Wanstrath at 3:10 AM

    Fixed tonight. Thanks.

184 sake gem doesn't install executable was updated
  • Chris Wanstrath
    • State changed from new to resolved
    by Chris Wanstrath at 3:09 AM

    This should be fixed now.

Friday, February 15 2008
106 extend Ambition to ActiveRecord associations was updated
  • Grant Rodgers
    Grant Rodgers commented at 7:53 PM

    ActiveRecord associations already support Enumerable methods, but they're useless in large scale apps because the entire collection is loaded, and you could ha...

  • ronin-13570 (at lighthouseapp)
    ronin-13570 (at lighthouseapp) commented at 3:09 AM

    Can you elaborate on this further? I'd be more than happy to have a look at doing the work.

    Cheers,

    Simon

191 Naming conflict with RSpec was updated
  • ronin-13570 (at lighthouseapp)
    ronin-13570 (at lighthouseapp) created the ticket at 6:18 AM

    Ambition::Processors::Base attempts to add context accessors unless a context method has already been defined. Unfortunately, the latest version of rspec someh...

113 empty? on associations was updated
  • ronin-13570 (at lighthouseapp)
    ronin-13570 (at lighthouseapp) commented at 3:19 AM

    Unfortunately this won't work as suggested as the GROUP BY clause MUST include every non aggregating column listed in the SELECT clause.

    Typically the same th...

183 'ParseTree =2.0.1' was updated
Thursday, February 14 2008
190 Support nil? was updated
  • ronin-13570 (at lighthouseapp)
    ronin-13570 (at lighthouseapp) created the ticket at 8:57 PM

    It'd be cool if I could use { |x| x.nil? } as well as { |x| x == nil }.

    Here's a possible solution.

188 Remember association scoping was updated
189 first always returns array was updated
  • ronin-13570 (at lighthouseapp)
    ronin-13570 (at lighthouseapp) created the ticket at 4:42 PM

    It seems as though any call to first with a limit of 1 returns an array rather than a single object or nil. Is this the

    desired behaviour? It's certainly not ...

Tuesday, February 12 2008
187 count SQL invalid on Oracle was updated
  • Jan Berkel
    Jan Berkel created the ticket at 2:24 AM

    select count(*) ... AS count_table is not valid SQL in oracle and will fail with error ORA-00933.

Friday, February 08 2008
186 Minor will_paginate refactoring for LinkRenderer was updated
  • Bryan Helmkamp
    Bryan Helmkamp created the ticket at 8:55 AM

    Hey Chris,

    I had to write a custom will_paginate renderer yesterday. In order to make this easier, I made the following refactoring to LinkRenderer:

    http://p...

Thursday, February 07 2008
185 [patch] will_paginate remotely (link_to_remote) was updated
  • Mislav
    • Assigned user changed from Chris Wanstrath to Mislav
    • State changed from new to open
    by Mislav at 1:47 AM

    Because the main maintainer for will_paginate is a JavaScript guy :)

    Thanks for the patch. I'll close this ticket when I either apply it or make an unobtrusiv...

Tuesday, February 05 2008
111 Task Body Missing was updated
  • Brad Greenlee
    Brad Greenlee commented at 2:34 PM

    I was having the same problem. I fixed it by tweaking sake.rb to use the latest ParseTree (2.1.1) rather than 2.0.1.

185 [patch] will_paginate remotely (link_to_remote) was updated
  • Tyler Jennings
    Tyler Jennings commented at 9:25 AM

    I just found this ticket:

    http://err.lighthouseapp.com/pro...

    I'm all for opinionated software, but it seems an unfortunate choice to break with rails here. ...

  • Tyler Jennings
    • Title changed from will_paginate remotely (link_to_remote) patch to [patch] will_paginate remotely (link_to_remote)
    by Tyler Jennings at 9:17 AM
  • Tyler Jennings
    Tyler Jennings created the ticket at 8:56 AM

    I patched will_paginate to support link_to_remote through a new :update option. Helper w/remoting looks like this:

    <%= will_paginate @pages, :update => "stor...

Sunday, February 03 2008
184 sake gem doesn't install executable was created
  • Peter Jaros
    Peter Jaros created the ticket at 8:13 AM

    Just installed the sake gem, and it didn't install an executable 'sake'. The gemspec says "executables: []". Not sure how this would regress, but there you g...

Thursday, January 31 2008
149 Problem with using complex joins was updated
  • BrianTheCoder
    BrianTheCoder commented at 3:42 PM

    with the new version I've gotten it working with acts as taggable on steroids. Also rick demonstrated in beast the right way to do ti. Ticket can be closed.