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.

Maxim Chernyak's latest activity

Sunday, September 27 2009
1828 ActiveResource breaks when encounters <object> tag in XML was updated in Ruby on Rails
  • Maxim Chernyak
    Maxim Chernyak commented at 5:11 PM

    IMO, when dealing with APIs it's important to keep in mind flexible input -> exact output principle. Object tag may appear on a more specific level, you know. I...

Saturday, August 08 2009
1828 ActiveResource breaks when encounters <object> tag in XML was updated in Ruby on Rails
  • Maxim Chernyak
    Maxim Chernyak commented at 10:59 PM

    Rails produces an obscure error for certain completely valid xml. Isn't it worth it to at least throw a better message saying "sorry but tag is not allowed in r...

Friday, May 15 2009
2210 Validation on associations can't process I18n aware error message was updated in Ruby on Rails
  • Maxim Chernyak
    Maxim Chernyak commented at 12:53 AM

    +1 Running into this atm - and it's a blocker.

Tuesday, May 05 2009
750 Keeping track of validations with a hash was updated in Ruby on Rails
  • Maxim Chernyak
    Maxim Chernyak commented at 4:43 PM

    Stupid formatting. Reposting lists (after previewing markdown in textmate).

    Cons:

    • Increased code complexity

    Pros:

    • Easier introspection
    • Straightforward testin...
  • Maxim Chernyak
    Maxim Chernyak commented at 4:40 PM

    In my opinion

    Cons: * Increased code complexity

    Pros: * Easier introspection * Straightforward testing * Flexible inheritance (undoing validations in subclasses...

Thursday, April 30 2009
750 Keeping track of validations with a hash was updated in Ruby on Rails
  • Maxim Chernyak
    Maxim Chernyak commented at 8:38 AM

    +1 What's the hold up here?

    This will make testing validations a breeze. Things like should_validate_inclusion_of only need to assert that it's declared in the ...

Friday, January 30 2009
1828 ActiveResource breaks when encounters <object> tag in XML was created in Ruby on Rails
  • Maxim Chernyak
    Maxim Chernyak created the ticket at 5:20 PM

    I'm not sure if this is a bug, or is it me misusing #to_xml, but I get "Wrong number of arguments" when trying to load a model which has <object> tag in its xml...

Tuesday, November 25 2008
1473 Static .svg file is served as text/plain was updated in Ruby on Rails
  • Maxim Chernyak
    • Title changed from Static .svg file is returned as text/plain to Static .svg file is served as text/plain
    by Maxim Chernyak at 9:49 PM
  • Maxim Chernyak
    Maxim Chernyak created the ticket at 9:49 PM

    When accessing static .svg files which reside in public directory, the response is in text/plain. I assume this could be the case with other not-very-popular ex...