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)

Wednesday, April 23 2008
111 Task Body Missing was updated
  • Don Petersen
    Don Petersen commented at 9:54 PM

    I tried to debug this myself, but I got pretty lost once it got into ruby2ruby. Bottom line, where you were expecting the task body, you got nothing. Big new...

Tuesday, April 22 2008
210 ignore bad page numbers was created
  • Michael Economy
    Michael Economy created the ticket at 12:41 AM

    its not cool how the paginate method explodes when i give it an invalid page number ( page =

    I think a better approach would be to default to page 1

    Also... i...

Saturday, April 19 2008
207 protected method `url_for' called for LinkRenderer was updated
  • Mislav
    • State changed from new to invalid
    by Mislav at 8:46 AM

    Uhh ... seems like JRuby bug. The method is called from LinkRenderer instance itself, so it couldn't possibly error out.

    I'm closing for now, but you're free ...

Wednesday, April 16 2008
207 protected method `url_for' called for LinkRenderer was updated
  • Irfan Baig
    Irfan Baig commented at 5:10 PM

    :(

    ActionView::TemplateError (protected method `url_for' called for #) in search/paged_search.html.erb:

    /usr/local/jruby-1.1RC3/lib/ruby/gems/1.8/gems/will_p...

  • Mislav
    • Assigned user changed from Chris Wanstrath to Mislav
    • Title changed from protected method `url_for' called for #<WillPaginate::LinkRenderer:0x89b54b> to protected method `url_for' called for LinkRenderer
    by Mislav at 1:03 AM

    Uh ... The url_for method is indeed protected, but it's called from within the object itself (so it doesn't matter if it's protected or even private).

    Can you...

208 protected method `url_for' called for #<WillPaginate::LinkRenderer:0x184df1d> was updated
  • Mislav
    • State changed from new to invalid
    by Mislav at 12:58 AM
Tuesday, April 15 2008
209 require 'RedCloth' fails under mod_rails was created
  • Jonathan Julian
    Jonathan Julian created the ticket at 2:35 PM

    RedCloth does not get loaded, resulting in the error "no such file to load -- RedCloth (MissingSourceFile)". Seems to be a case-sensitivity thing.

    It can be f...

Monday, April 14 2008
175 Wrong count with acts_as_taggable was updated
  • thorsten (at 80beans)
    thorsten (at 80beans) commented at 7:41 AM

    Hi,

    i thought i put this here, since the error is most likely the same:

    when using paginate_with_ferret the page_count at least for the first

    page is wrong....

Sunday, April 13 2008
208 protected method `url_for' called for #<WillPaginate::LinkRenderer:0x184df1d> was updated
  • Andrew Shika
    Andrew Shika created the ticket at 5:31 PM

    Greetings,

    I am really desperate to get the paging working with this purportedly great rails paging plugin in. Here are my snippets:

    Controller:

    @events = E...

207 protected method `url_for' called for LinkRenderer was updated
  • Andrew Shika
    Andrew Shika created the ticket at 4:41 PM

    I have <%= will_paginate @events %> in my view and @events = Event.paginate :page => params[:page], :per_page => 2, :order => 'event_start_datetime DESC' in ...

Thursday, April 10 2008
206 paginate_each with conditions was updated
  • Matt Aimonetti (mattetti)
    • Title changed from pageinate_each with conditions to paginate_each with conditions
    by Matt Aimonetti (mattetti) at 10:30 PM

    aaahhh I knew it was something stupid like that!

    I agree paginated is probably semantically better.

    Works great, I'm glad you added this feature. Btw you mig...

  • Mislav
    • State changed from resolved to invalid
    by Mislav at 6:38 PM
  • Mislav
    • State changed from new to resolved
    by Mislav at 6:37 PM

    Hey Matt,

    It's paginated_each (you are missing a letter). I see how you got confused, but I think this name is more semantic with regard to what the method do...

  • Matt Aimonetti (mattetti)
    Matt Aimonetti (mattetti) created the ticket at 6:11 PM

    Hey Mislav, it looks like I found a tiny bug in WP 2.2.1

    I wanted to use the awesome new paginate_each method with a condition and tried the following:

    User....

Wednesday, April 09 2008
205 Problem with distinct table_name.* was updated
  • gobigdave
    gobigdave commented at 10:40 AM

    That helps a lot, and I can update my code to not rely on my patched version. However, I'm thinking that doing a :select => "distinct table_name.*" is not unco...

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

    Will paginate let's you specify a modified :select part specifically for the count query:

    Referral.paginate :page => 1, :count => { :select => 'distinct refer...
  • gobigdave
    gobigdave created the ticket at 8:02 AM

    This problem is not limited to acts_as_taggable, but it was through it that I found it. In general, everything works great between acts_as_taggable and will_p...

Saturday, April 05 2008
204 ActiveRecord::Associations::AssociationCollection#any? broken since rails-rev... was updated
  • wildchild
    wildchild commented at 11:03 PM

    Broken again (SystemStackError: stack level too deep) after AR associations refactoring (r9233) :(

174 Parameter for the customization of ellipsis was updated
Friday, April 04 2008
204 ActiveRecord::Associations::AssociationCollection#any? broken since rails-rev... was updated
197 using :param_name => "something[page]" leads to invalid behavior was updated
Thursday, April 03 2008
204 ActiveRecord::Associations::AssociationCollection#any? broken since rails-rev... was updated
Wednesday, April 02 2008
204 ActiveRecord::Associations::AssociationCollection#any? broken since rails-rev... was updated
  • Martin Gamsjaeger (snusnu)
    Martin Gamsjaeger (snusnu) commented at 7:09 PM

    Hey guys,

    I can confirm that this fixed all my errors, although I found the offending line 44 in will_paginate.rb and not finder.rb ;-)

    Thx so much! You rock...

  • Geoff Garside
    Geoff Garside commented at 6:23 PM

    Thanks Aaron, my initial fix was a bit more simplistic (delete the .push) but yours is much cleaner. Its always a terrible feeling of dread when you update ven...

  • Aaron H.
    Aaron H. commented at 4:49 PM

    I believe I have a fix for this.

    Investigating has found that the issue lies in how will_paginate mixes in the paginate method_missing magic.

    In line 44 of f...

  • Martin Gamsjaeger (snusnu)
    Martin Gamsjaeger (snusnu) created the ticket at 1:08 PM

    Hi!

    I already posted this as a blog comment, mainly because I didn't think of Lighthouse at that moment :) Anyways, once again for the records ...

    I just not...

203 ArgumentError on Rake task arguments was updated
  • Adam S
    Adam S commented at 6:07 AM

    One more time for the dummies... I have updated sake on my github fork... Sent Chris a pull request...

    Now to see if it is 'worthy' ;)

  • Adam S
    Adam S commented at 4:08 AM

    Umm... scratch that... patch needs work ;)

  • Adam S
    Adam S commented at 3:50 AM

    Patch attached...

Monday, March 31 2008
191 Naming conflict with RSpec was updated
  • ctran
    ctran commented at 10:07 PM

    Any work-around?

Sunday, March 30 2008
176 Implicit :all was updated
  • Mislav
    • State changed from new to resolved
    by Mislav at 4:51 AM

    What was I thinking? This wasn't a good idea at all. I'll put all my hopes on named_scope

201 Finder_sql and will_paginate cause sql truncation was updated
  • Mislav
    • State changed from new to invalid
    • Assigned user changed from Chris Wanstrath to Mislav
    by Mislav at 4:48 AM

    Definitely not a will_paginate bug, plus the fact you can't even use paginate on associations with finder_sql.

    This hardcore database stuff should be entirely...

Thursday, March 27 2008
203 ArgumentError on Rake task arguments was updated
  • Adam S
    Adam S commented at 4:11 AM

    Sorry calling/testing args done by:

    rake/sake my_task[arg1,arg2]

  • Adam S
    Adam S created the ticket at 3:56 AM

    Rake now supports task arguments of the form:

    task 'my_task', :arg1, :arg2 do |task, args|
      # do stuff
    end
    

    these tasks cause an ArgumentError in sake on ...

Monday, March 24 2008
202 [PATCH] Add ability to update column attributes was updated
  • defunkt
    • Assigned user changed from Chris Wanstrath to PJ Hyett
    by defunkt at 2:20 PM
Sunday, March 23 2008
202 [PATCH] Add ability to update column attributes was updated
  • Nate Wiger
    Nate Wiger created the ticket at 8:22 PM

    Auto migrations rocks - but it doesn't properly detect changes in column attributes. That is, if you had:

    t.decimal :cost, :precision => 0

    And changed it to:...

Thursday, March 20 2008
201 Finder_sql and will_paginate cause sql truncation was updated
  • James Zwiers
    James Zwiers commented at 1:57 PM

    Okay, so I was just blind that day. Feel free to ignore this, its not actually truncating. Although, it does look like its not happy with multiple SQL statemen...

Tuesday, March 11 2008
201 Finder_sql and will_paginate cause sql truncation was updated
  • James Zwiers
    James Zwiers created the ticket at 12:47 PM

    Hey,

    So, I've been working on a rebuild of a complex query (its a friendship style relationship between user accounts). Formerly it was stored using two table...

200 fixture_scenarios_builder: Building scenario kills migrations version was updated
  • Ed Sinjiashvili
    Ed Sinjiashvili created the ticket at 9:59 AM

    Building a scenario destroys all the tables along with the schema_info (which is in skip_tables, btw). I'm not sure how this behaviour is useful, so attaching ...

Sunday, March 09 2008
197 using :param_name => "something[page]" leads to invalid behavior was updated
  • Yuri
    Yuri commented at 8:52 AM

    Sunday is a bad day for coding, please ignore def rec_merge(other) above, sorry, the correct version is:

        def rec_merge(other)
          res = self.clone
      ...
  • Yuri
    Yuri commented at 8:48 AM

    Hey,

    Just realized that my initial solution is not ideal.

    Imagine that GET parameters were

    grid[:order] = 'created_at'
    grid[:order_direction] = 'asc'
    

    and...

Friday, March 07 2008
117 Illegal MySQL in #to_sql and #to_hash was updated
  • Allan Cochrane
    Allan Cochrane commented at 3:26 AM

    I think the issue may have been solved:

    >> Project.select{'column' == 'value'}.to_sql
    => "SELECT * FROM ProjectsDB.projects WHERE column = 'value'"
    

    which s...

199 Models derived from subclass of AR fail was created
  • Allan Cochrane
    Allan Cochrane created the ticket at 3:20 AM

    Given:

    class ResultBaseClass < ActiveRecord::Base
    end
    
    class SysvalResult < ResultBaseClass
    end
    
    class SysvalResultAR < ActiveRecord::Base
    end
    

    then I...

Thursday, March 06 2008
198 Removing :include option from count query when it's possible was updated
Tuesday, March 04 2008
197 using :param_name => "something[page]" leads to invalid behavior was updated
  • Mislav
    • State changed from new to open
    by Mislav at 11:08 AM

    Thanks for the detailed report! I'll take a deeper look as soon as I'm able.

  • Yuri
    Yuri created the ticket at 9:47 AM

    Problem

    If I use a compound parameter name for :param_name, like this:

       will_paginate(resultset, :param_name => "test[page]")
    

    After a couple of clicks on...

195 Changesets @lighthouse was updated
  • Artem Vasiliev
    Artem Vasiliev commented at 7:27 AM

    Ok, I got it, thanks.. GitHub looks cool, I guess I'll give a link to its changeset screen when I have Git support in my codenotifier :)

  • Mislav
    • State changed from new to invalid
    by Mislav at 6:48 AM

    Hey Artem,

    Thanks for your concern. Unfortunately, things aren't that simple now. Previously, all err plugins were in a single SVN repository. Now, we use git...

196 [PATCH] add rel attribute to next and previous link was updated
  • swdyh
    swdyh commented at 7:11 AM

    Sorry, My name is Sawada Youhei.

    Thank you for your speedy response.