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.

Kai Krakow's latest activity

Friday, October 15 2010
5815 accepts_nested_attributes_for not updating attributes was updated in Ruby on Rails
  • Kai Krakow
    • Tag changed from nested attributes, assignment, associations to nested attributes, rails 2.3.8, assignment, associations, bugs
    by Kai Krakow at 12:13 PM
  • Kai Krakow
    Kai Krakow created the ticket at 12:11 PM

    In Rails 2.3.8 I discovered that accepts_nested_attributes_for may skip updating existing records under certain circumstances. I pulled my hair out yesterday be...

3663 redirect_to skips generation of headers (security problem) was updated in Ruby on Rails
  • Kai Krakow
    Kai Krakow commented at 11:23 AM

    Sorry, lighthouse killed my formatting and there's no way to edit a post. sigh

  • Kai Krakow
    Kai Krakow commented at 11:21 AM

    To reproduce, create a test application:

      $ rails test
      $ ruby script/generate controller Test index redirect
      $ rm public/index.html
      $ vim app/controller...
  • Kai Krakow
    Kai Krakow commented at 11:03 AM

    I'm pretty sure that Rails should send "Cache-Control: private" (which it does on normal, unredirected responses) to protect the Set-Cookie header from being di...

Monday, October 11 2010
3663 redirect_to skips generation of headers (security problem) was updated in Ruby on Rails
  • Kai Krakow
    Kai Krakow commented at 5:44 PM

    Currently I can still reproduce with Rails 2.3.8, I'll check later versions soon.

Tuesday, January 05 2010
3663 redirect_to skips generation of headers (security problem) was created in Ruby on Rails
  • Kai Krakow
    Kai Krakow created the ticket at 10:46 PM

    I'm using RestfulAuthentication and discovered a session hijacking issue related due to rails skipping the generation of "Cache-Control" headers during redirect...

Friday, November 28 2008
1196 counter_cache not decrementing on delete was updated in Ruby on Rails
  • Kai Krakow
    Kai Krakow commented at 2:30 PM

    This is especially annoying on has_many :through associations (given these associations):

    
    class Tag; belongs_to :post, :counter_cache => true; belongs_to :ta...