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.

Kenn Ejima's latest activity

Friday, April 08 2011
6546 Error sending empty Content-Type instrumentation.rb#22 was updated in Ruby on Rails
  • Kenn Ejima
    Kenn Ejima commented at 4:17 PM

    I had the same problem. In our case, some of our API client developers use Titanium and we have no control over what they choose, so I agree that at least we ne...

Tuesday, March 08 2011
4176 Make change_table execute changes in batch was updated in Ruby on Rails
  • Kenn Ejima
    Kenn Ejima commented at 4:54 PM

    Awesome - IMHO :bulk => true should be the default behavior for MySQL, once it's battle-tested in the wild.

Wednesday, February 23 2011
6275 AbstractController::ActionNotFound should be rescued was updated in Ruby on Rails
  • Kenn Ejima
    Kenn Ejima commented at 10:16 PM

    Thanks Andrew, patching render_exception worked as you said. In my case:

    require 'action_dispatch/middleware/show_exceptions'
    module ActionDispatch
      class Sho...
Wednesday, January 19 2011
4176 Make change_table execute changes in batch was updated in Ruby on Rails
  • Kenn Ejima
    Kenn Ejima commented at 7:03 AM

    +1

    As our tables have grown to 10M+ rows, almost all significant migrations have raw ALTER TABLE statements in it due to this exact problem. It would be awesome...

Monday, January 10 2011
6275 AbstractController::ActionNotFound should be rescued was created in Ruby on Rails
  • Kenn Ejima
    Kenn Ejima created the ticket at 10:34 PM

    Suppose I have the following routes.rb:

    match ':controller/:action', :controller => /api\/(room|user)/
    match 'api/*others', :to => 'api/base#render_404_as_json...
Sunday, January 09 2011
6022 Content negotiation fails for some */* headers (regression) was updated in Ruby on Rails
  • Kenn Ejima
    Kenn Ejima commented at 2:17 AM

    On Rails 3.0.3 + Ruby 1.9.2, the same "template missing" error as Fjan described.

    Now my patch has the following regex in ActionDispatch::Http::MimeNegotiation:

    ...
Saturday, January 08 2011
6022 Content negotiation fails for some */* headers (regression) was updated in Ruby on Rails
  • Kenn Ejima
    Kenn Ejima commented at 8:29 AM

    This one should fall back to html (or plain text), too. It was sent from Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1).

    • HTTP_ACCEPT: text/*
  • Kenn Ejima
    Kenn Ejima commented at 6:14 AM

    I have another case for the same error that still fails with this commit

    • HTTP_ACCEPT: */*;q=0.01

    There's a semicolon in the string, the user agent was Mozill...