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, January 31 2008
136 Problem with :include option was updated
  • Mislav
    • State changed from open to invalid
    by Mislav at 2:27 PM

    Hey, sorry it took so long. I think the issue is because you're specifying 0 for page number, but 1 is first page. In newer versions of will_paginate (since la...

149 Problem with using complex joins was updated
  • Mislav
    Mislav commented at 2:23 PM

    Hey Brian,

    Can you confirm that this issue still exists? Can you paste me the code that doesn't work together with errors it makes? Read the formatting help a...

175 Wrong count with acts_as_taggable was updated
  • Mislav
    Mislav commented at 2:17 PM

    Thanks. I'll try to develop something that will make this easier for the user.

150 :select broken with will_paginate was updated
  • Mislav
    • State changed from open to resolved
    by Mislav at 2:14 PM

    This was resolved a long time ago, closing the ticket. Report if I'm wrong.

182 acts_as_paranoid support for will_paginate was updated
  • Mislav
    • Assigned user changed from Chris Wanstrath to Mislav
    • State changed from new to open
    by Mislav at 11:29 AM

    Thanks for the suggestion. I'll not apply the patch immediately because I'm researching how to cover counts generically (without special-casing within the plug...

183 'ParseTree =2.0.1' was updated
  • Matthew King
    Matthew King commented at 10:08 AM

    Crap, sorry about the numerous small updates.

    ActiveRecord 2.0.2 appears to break (and it should) the test helper hack where we make fake MySQL and PostgreSQL...

  • Matthew King
    Matthew King commented at 10:06 AM

    Okay, so with ParseTree 2.1.1, all specs pass. ActiveRecord 2.0.2 or Ruby2Ruby 1.1.8 will break Ambition.

  • Matthew King
    Matthew King commented at 9:32 AM

    Or actually, I can verify that I am suffering from gem dependency hell.

  • Matthew King
    Matthew King commented at 6:33 AM

    I can verify that it absolutely does NOT work. Suck. Will see what's changed in ParseTree.

Wednesday, January 30 2008
183 'ParseTree =2.0.1' was updated
  • Chris Wanstrath
    • State changed from new to open
    by Chris Wanstrath at 7:13 PM

    Can you verify that ParseTree 2.1.1 works with Ambition? If so I'll bump the version.

  • Matthew King
    Matthew King created the ticket at 5:37 PM

    Locking to a specific version of ParseTree makes Ambition unusable with Merb.

    $ merb -i

    ...

    irb(main):001:0> require 'ambition'

    Gem::Exception: can't activ...

182 acts_as_paranoid support for will_paginate was updated
  • Diego Algorta
    Diego Algorta created the ticket at 6:03 AM

    I'm using both will_paginate and acts_as_paranoid on a project. AAP adds a scope to the normal find* and count methods to filter all logically deleted records ...

Tuesday, January 29 2008
181 Generator cleanup was updated
  • Chris Wanstrath
    • State changed from new to resolved
    by Chris Wanstrath at 8:22 PM

    Committed -- it'll get pushed out in the next gem.

    http://github.com/defunkt/ambiti...

    Damn, why doesn't GitHub display the full commit message with newlines...

  • Dr Nic
    Dr Nic created the ticket at 6:58 PM

    Added a banner.

    Moved the adapter templates into own folder for cleanliness.

179 Auto-migration does not work with table name prefix was updated
  • Chris Wanstrath
    • Assigned user changed from Chris Wanstrath to PJ Hyett
    • State changed from new to open
    by Chris Wanstrath at 3:37 PM
Monday, January 28 2008
180 Window option for will_paginate Pager was updated
  • Mislav
    • Assigned user changed from Chris Wanstrath to Mislav
    by Mislav at 2:21 AM
  • Mislav
    • State changed from new to invalid
    by Mislav at 2:20 AM

    That option is called :inner_window

    <%= will_paginate @posts, :inner_window => 0 %>
    
Sunday, January 27 2008
180 Window option for will_paginate Pager was updated
  • MG
    MG created the ticket at 11:35 AM

    really like the plugin/pager, just one little thing i did not found in the options

    :window => 1 ---> 1 2 .. 3 4 5 .. 12 13

    :window => 0 ---> 1 2 .. 4 ....

178 Will Paginate :readonly patch was updated
  • Mislav
    • State changed from open to resolved
    by Mislav at 9:44 AM

    Fixed in [438]

  • Mislav
    • State changed from new to open
    by Mislav at 9:35 AM

    Nice catch.

Friday, January 25 2008
179 Auto-migration does not work with table name prefix was updated
  • Bence Nagy
    Bence Nagy created the ticket at 3:41 AM

    The plugins tries alter the table "prefix_prefix_tablename" instead "prefix_tablename", a quick patch is attached...

Thursday, January 24 2008
178 Will Paginate :readonly patch was updated
177 Can't use :group option in finders was updated
Friday, January 18 2008
177 Can't use :group option in finders was updated
  • Mislav
    • State changed from new to open
    • Title changed from :group to Can't use :group option in finders
    • Assigned user changed from Chris Wanstrath to Mislav
    by Mislav at 4:51 AM

    Javier,

    I need more info on this. Can you paste me the call to a paginating finder that isn't working for you? Are you getting an error? Is wrong SQL generate...

Thursday, January 10 2008
177 Can't use :group option in finders was updated
  • javier
    javier created the ticket at 9:01 PM

    i can't use :group => like :order =>

    the object is to do an sql like this sum(enanos) as enanos * from ...

    i need the GROUP BY option, suggestions?

    and t...

Wednesday, January 09 2008
175 Wrong count with acts_as_taggable was updated
  • goodwill
    goodwill commented at 7:14 AM

    Exactly thats the problem.

    I have did a hack to make it work somehow.

    First define an alias to find_tagged_with:

    module ActiveRecord

    module Acts #:nodoc:

    ...

  • Mislav
    Mislav commented at 6:50 AM

    OK thanks. This isn't a bug, it just doesn't work right now. I'll try

    to get the support up for acts_as_taggable and similar this evening -

    I've been planing...

  • joeconnor79 (at yahoo)
    joeconnor79 (at yahoo) commented at 6:21 AM

    Using acts_as_taggable_on_steroids (r351)

    Code in the controller is

    @users = User.paginate_tagged_with(params[:tags], :page => params[:page], :order => get_s...

  • Mislav
    Mislav commented at 6:15 AM

    Joe: please tell me what exact plugin for tags do you use and how are you

    calling the paginating finder in your controller. Thanks!

    On Jan 9, 2008 3:01 PM, L...

  • joeconnor79 (at yahoo)
    joeconnor79 (at yahoo) commented at 6:01 AM

    I also have this problem. The last 2 SQL queries from my db are:

    SELECT DISTINCT users.* FROM `users` INNER JOIN taggings users_taggings ON users_taggings.tag...

176 Implicit :all was updated
  • Mislav
    Mislav created the ticket at 3:06 AM

    Paul Berry reports:

    # Article model
    scope_out :published, :conditions => ["published_at is not null"]
    
    # this works:
    Article.paginate_published :all, :pag...
Monday, January 07 2008
175 Wrong count with acts_as_taggable was updated
  • Mislav
    • State changed from new to open
    • Title changed from will_paginate contains extra blank page at the end to Wrong count with acts_as_taggable
    • Assigned user changed from Chris Wanstrath to Mislav
    by Mislav at 4:29 AM

    Would you be kind enough to share the code you're using, too? ;-P

    I need the call to paginate finder and your modified code for the extra parameter. Also, do ...

Sunday, January 06 2008
175 will_paginate contains extra blank page at the end was updated
  • goodwill
    goodwill commented at 12:30 AM

    I have played with that a while and realize the count is wrong, thats why it doesn't work. How come the records are fetched correctly but the count is wrong?

    ...

  • goodwill
    goodwill created the ticket at 12:20 AM

    When I tried to use paginate with acts_as_taggable (on steroids), I have modified the code to allow me to put :match_all into the parameter list. I think its a...

Friday, January 04 2008
173 Percent sign wildcard ActiveRecord error was updated
  • Adrian
    Adrian commented at 8:15 AM

    I had a query that looked like:

    sql = "select * from mytable where name like '%hello%'"

    but my query should have been written:

    sql = "select * from mytable ...

  • Mislav
    • State changed from open to invalid
    by Mislav at 7:44 AM

    OK, but I still don't understand what was going on :)

  • Adrian
    Adrian commented at 4:42 AM

    MIslav,

    Please close this ticket. I am a knucklehead coming to Ruby from Python and didn't realize I had to put two percent signs together in order to preven...

  • Mislav
    • Assigned user changed from Chris Wanstrath to Mislav
    • State changed from new to open
    • Title changed from Percent sign wildcard query error to Percent sign wildcard ActiveRecord error
    by Mislav at 4:36 AM

    Hey Adrian,

    Thanks for the stack trace. Can I have the line where you call paginate_by_sql also?

    While I track this down, please try if the same thing works ...

174 Parameter for the customization of ellipsis was updated
  • Mislav
    • Assigned user changed from Chris Wanstrath to Mislav
    • State changed from new to open
    • Title changed from Add ellipsis option to Parameter for the customization of ellipsis
    by Mislav at 7:48 AM

    How about I make it like this by default?

    <span class="gap">&hellip;</span>
    

    I could easily add an option to customize it, but who would use it? The view hel...

Thursday, January 03 2008
174 Parameter for the customization of ellipsis was updated
  • ihearithurts
    ihearithurts created the ticket at 3:46 PM

    Instead of always putting "..." in between windows, allow people to pass it as an option. Ex: ...

173 Percent sign wildcard ActiveRecord error was updated
  • Adrian
    Adrian created the ticket at 9:21 AM

    Using MySQL 5.0 and the latest stable will_paginate from svn, I am getting the following error after passing a SQL query containing wildcards (ex. "select * fr...

Monday, December 31 2007
120 Association with finder_sql raises TypeError was updated
  • Dmitri Zhuchkov
    Dmitri Zhuchkov commented at 6:18 AM

    I hit the same problem today. It seems I was able to work around the problem by something like this:

    class Post < ActiveRecord::Base
      has_many :comments,
     ...
Saturday, December 29 2007
166 Remove ORDER BY clause for COUNT(*) version of query was updated
  • Mislav
    • State changed from open to resolved
    by Mislav at 3:37 AM

    Hey codyc, thanks for the patch. Applied in changeset 434

172 :total_entries ignored in paginate_by_sql was updated
  • Mislav
    • State changed from open to resolved
    by Mislav at 1:46 AM

    Thanks for a great report and fix!

    Applied in changeset 433

Friday, December 28 2007
172 :total_entries ignored in paginate_by_sql was updated
  • Chris Wanstrath
    • State changed from new to open
    • Assigned user changed from Chris Wanstrath to Mislav
    by Chris Wanstrath at 11:01 PM
171 subtlety not responding to new svn request was updated
  • Dr Nic
    Dr Nic commented at 3:33 AM

    Still failing for "http://datejs.googlecode.com/svn/trunk" - can you test this url? ta.

Monday, December 24 2007
166 Remove ORDER BY clause for COUNT(*) version of query was updated
  • Chris Wanstrath
    • State changed from new to open
    • Assigned user changed from Chris Wanstrath to Mislav
    by Chris Wanstrath at 11:24 PM
171 subtlety not responding to new svn request was updated
  • Chris Wanstrath
    • State changed from new to resolved
    by Chris Wanstrath at 11:23 PM

    Should be fixed now, for the long haul.

170 [idea] list mode was updated
  • Mislav
    • Title changed from list mode enhancement to [idea] list mode
    • Assigned user changed from Chris Wanstrath to Mislav
    by Mislav at 7:32 PM
80 Pagination HTML should be more semantic was updated
  • Mislav
    Mislav commented at 7:30 PM

    Mike,

    I've made significant progress regarding customization of output. Check out the latest version of the plugin and rake rdoc to generate HTML documentatio...