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.

Peter Leonhardt's latest activity

Monday, July 27 2009
2960 uniq bug on array of ActiveRecord Objects was created in Ruby on Rails
  • Peter Leonhardt
    Peter Leonhardt created the ticket at 9:41 PM

    The uniq method on collections of ActiveRecord Objects relies on the primary_key of the model to determine if two objects are the same.

    This can lead to problem...

Thursday, March 26 2009
2199 default_scope Errors with named_scope was updated in Ruby on Rails
  • Peter Leonhardt
    • Tag changed from 2.3-rc2, activerecord, default_scope, named_scope, scope to 2.3-rc2, activerecord, bug, default_scope, named_scope, scope
    by Peter Leonhardt at 12:55 AM
2319 Rails 2.3 + Mongrel: Deploy with --prefix causes AbstractRequest Error was updated in Ruby on Rails
  • Peter Leonhardt
    • Tag changed from 2.3, abstractrequest, mongrel to 2.3, abstractrequest, bug, mongrel
    by Peter Leonhardt at 12:54 AM
Monday, March 23 2009
2319 Rails 2.3 + Mongrel: Deploy with --prefix causes AbstractRequest Error was updated in Ruby on Rails
  • Peter Leonhardt
    Peter Leonhardt commented at 10:58 PM

    please ignore the above comment, I edited the original with the proper code blocks. Thanks

  • Peter Leonhardt
    Peter Leonhardt commented at 10:56 PM

    Sorry, that code should look like:

    line 151 of mongrel/rails.rb reads

    
    ActionController::AbstractRequest.relative_url_root = ops[:prefix] if ops[:prefix]@@@
    ...
  • Peter Leonhardt
    Peter Leonhardt created the ticket at 10:54 PM

    Hey guys,

    I think this is more of a mongrel problem, but seeing as how that hasn't had an update in a year, I'm wondering if we can fix this on the rails side.

    ...

Tuesday, March 10 2009
2199 default_scope Errors with named_scope was created in Ruby on Rails
  • Peter Leonhardt
    Peter Leonhardt created the ticket at 6:46 PM

    When using default_scope in conjunction with named_scope, a default_scope that has been defined with :condition as a String, rather than a hash will throw a "Ty...