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.

Jason Cheow's latest activity

Sunday, November 14 2010
5968 Size of through association is not correct after adding a has_many association was created in Ruby on Rails
  • Jason Cheow
    Jason Cheow created the ticket at 6:12 AM

    With the following:

    class Post < ActiveRecord::Base
      has_many :readers
      has_many :people, :through => :readers
    end
    
    class Person < ActiveRecord::Base
      has_m...
Thursday, January 08 2009
1626 fieldWithErrors shouldn't use a div was updated in Ruby on Rails
  • Jason Cheow
    Jason Cheow commented at 4:17 AM

    What I'd do in such a case might be to attach class names on the form elements' parent node, specifying the type of form input it encapsulates. For example:

    
    ...
Thursday, January 01 2009
1626 fieldWithErrors shouldn't use a div was updated in Ruby on Rails
  • Jason Cheow
    Jason Cheow commented at 11:33 PM

    +1 for Adam's patch. Have always been tweaking field_errors_proc on most projects to achieve the same thing.

Wednesday, November 26 2008
1483 #ord method for ActiveSupport::Multibyte::Chars was updated in Ruby on Rails
  • Jason Cheow
    • Title changed from #ord for ActiveSupport::Multibyte::Chars to #ord method for ActiveSupport::Multibyte::Chars
    by Jason Cheow at 3:15 PM
  • Jason Cheow
    Jason Cheow created the ticket at 3:15 PM

    This patch adds a ActiveSupport::Multibyte::Chars#ord method so that it returns correct Unicode value instead of falling back on String#ord in CoreExtensions, w...