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.

Alex MacCaw's latest activity

Friday, October 08 2010
5763 [PATCH] Refactoring JoinDependency and friends was updated in Ruby on Rails
Sunday, September 12 2010
1152 Support for nested has_many :through associations was updated in Ruby on Rails
  • Alex MacCaw
    • Importance changed from to
    by Alex MacCaw at 10:19 AM

    +1 For Rails 3.x

Monday, August 30 2010
5210 encoding problem in json format response was updated in Ruby on Rails
  • Alex MacCaw
    • Tag changed from 3.0.0.rc, encoding, to_json to 3.0, 3.0.0.rc, encoding, to_json
    by Alex MacCaw at 11:31 AM

    Switching to the mysql2 gem doesn't completely solve the problem.

    For example:

    "".to_json.encoding #<Encoding:UTF-8> [].to_json.encoding #<Encoding:US-ASCII>

    At...

Sunday, June 13 2010
4494 Ruby 1.9.2-head's JSON support breaks to_json for arrays of records was updated in Ruby on Rails
  • Alex MacCaw
    Alex MacCaw commented at 3:09 AM

    Broken for me too. The issue is that the json lib is defining to_json methods on String/Hash/etc, which aren't ever being undefined. The following fixes it:

    mo...
Sunday, January 18 2009
1626 fieldWithErrors shouldn't use a div was updated in Ruby on Rails
  • Alex MacCaw
    Alex MacCaw commented at 10:22 AM

    José: No, I don't think you do. The class .fieldWithErrors is not element specific and should work find on the input, rather than (as currently) the div.

Thursday, January 08 2009
1626 fieldWithErrors shouldn't use a div was updated in Ruby on Rails
  • Alex MacCaw
    • Tag changed from actionview, helper, patch, tested to actionview, helper, patch, tested, verified
    by Alex MacCaw at 9:21 AM

    Jason, Good point +1 for Adam's patch

    We must have enough +1's by now

Wednesday, January 07 2009
1626 fieldWithErrors shouldn't use a div was updated in Ruby on Rails
  • Alex MacCaw
    Alex MacCaw commented at 3:44 PM

    Just to be Devil's Advocate - here's a reason why you'd want the extra markup rather than adding the class name to the element:

    IE6 doesn't support double class...

Saturday, December 27 2008
1626 fieldWithErrors shouldn't use a div was updated in Ruby on Rails
  • Alex MacCaw
    Alex MacCaw commented at 10:47 PM

    Adam, brilliant - that's definitely the way forward. I'll check out the patch.

Wednesday, December 24 2008
1626 fieldWithErrors shouldn't use a div was updated in Ruby on Rails
  • Alex MacCaw
    Alex MacCaw commented at 5:50 PM

    I'll try again (lighthouse formatting): <p><div class="fieldWithErrors"><input /></div></p>

  • Alex MacCaw
    Alex MacCaw commented at 5:49 PM

    Arthur, nesting a P inside a DIV is fine, agreed. But what's happening here is a DIV is being nestled inside a P, which isn't allowed.

    The code looks like this:

    ...