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.

David Lowenfels's latest activity

Wednesday, July 16 2008
462 Loading environment fails with an outdated version of RubyGems while using co... was updated in Ruby on Rails
  • David Lowenfels
    David Lowenfels commented at 9:48 AM

    @jeremy: any way you can edit the comments to remove my email address (spambait) from my "July 8th, 2008 @ 08:50 PM" comment? Thx!

Wednesday, July 09 2008
462 Loading environment fails with an outdated version of RubyGems while using co... was updated in Ruby on Rails
  • David Lowenfels
    David Lowenfels commented at 2:50 AM

    I don't see the attachment from my last comment. Can only admins see it??

    I'm attaching it again, and including in this comment. Sorry if it ends up being a r...

  • David Lowenfels
    David Lowenfels commented at 2:46 AM

    Simple fix: rails already was requiring rubygems >= 0.9.4.

    This patch makes it require rubygems >= 1.1.1

  • David Lowenfels
    David Lowenfels commented at 2:06 AM

    +1 rails definitely needs a patch to fix this... it is terrible to have things fail with a cryptic error

Monday, July 07 2008
507 patch to add :tokenizer option to validates_length_of was updated in Ruby on Rails
  • David Lowenfels
    David Lowenfels commented at 7:53 PM

    @Tarmo: yes, there was a reason. Look at the diff and you will see that it was less messy to substitute a block that returns an array, so that the size method ...

Sunday, June 29 2008
422 patch to add :count=>:words to validates_length_of was updated in Ruby on Rails
507 patch to add :tokenizer option to validates_length_of was updated in Ruby on Rails
  • David Lowenfels
    • Tag changed from activerecord to activerecord, patch
    by David Lowenfels at 1:48 AM

    I decided to go with the convention of passing a keyed proc instead of an anonymous block.

  • David Lowenfels
    David Lowenfels created the ticket at 1:47 AM

    see ticket #422 for background info.

    :tokenizer - Specifies how to split up the attribute string. (e.g. :tokenizer => lambda{ |str| str.scan(/\w+/)} to count ...

Saturday, June 28 2008
422 patch to add :count=>:words to validates_length_of was updated in Ruby on Rails
  • David Lowenfels
    David Lowenfels commented at 11:26 PM

    @jeremy: that sounds like a good solution. Should I cook up a patch to accept a block?

  • David Lowenfels
    David Lowenfels commented at 3:53 AM

    It seemed like a natural fit to me because the existing rails code already is splitting on '', so I just modified it to optionally split on '\W'. It's a low ha...