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.

Tarmo Tänav's latest activity

Sunday, June 15 2008
420 Interpret :limit as number of bytes was created in Ruby on Rails
Friday, June 13 2008
414 Named scopes misbehave when named with a string was created in Ruby on Rails
  • Tarmo Tänav
    Tarmo Tänav created the ticket at 9:51 PM

    Named scopes are stored in a hash "scopes" but the key used for the hash is taken directly from the name parameter, it can be a string or a symbol. But if a st...

Sunday, May 18 2008
215 ActiveRecord::Base.each instance method was updated in Ruby on Rails
Friday, May 16 2008
208 PQserverVersion not supported by this client version was updated in Ruby on Rails
  • Tarmo Tänav
    Tarmo Tänav commented at 7:19 PM

    The error you're seeing should only exist in ruby-pg and not the postgres gem. The error is only compiled into ruby-pg if it determines your postgresql version...

Tuesday, May 13 2008
130 CGI::Cookie and CookieStore performing unnecessary work causing interoperabil... was updated in Ruby on Rails
  • Tarmo Tänav
    Tarmo Tänav commented at 5:04 PM

    This change seems to change the behavior of deleting a cookie. When a cookie is deleted it's value is set to an empty string. Previously that would have meant:...

Tuesday, May 06 2008
117 Add assert_not_valid to model assertions was updated in Ruby on Rails
  • Tarmo Tänav
    Tarmo Tänav commented at 5:48 PM

    Thank you. Is there a good reason for not squishing the commits in the patch?

  • Tarmo Tänav
    Tarmo Tänav commented at 12:52 AM

    1. I agree

    2. I agree, though I still think that if there is a all-in-one assertion helper for the "test more than needed, just in case" people there should b...

  • Tarmo Tänav
    Tarmo Tänav commented at 12:08 AM

    A couple of more questions:

    1. Why not "assert_invalid"?

    2. Have you thought about supporting partial error messages checks? Basically, if you have a test fo...

Monday, May 05 2008
117 [patch] Add assert_not_valid to model assertions was updated in Ruby on Rails
  • Tarmo Tänav
    Tarmo Tänav commented at 9:21 PM

    Why not make the messages parameter optional and not assert the specific contents of the validation errors unless it is provided?