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.

abriening's latest activity

Wednesday, August 05 2009
2241 Empty Array to_xml Should Still Yield Builder was updated in Ruby on Rails
  • abriening
    abriening commented at 4:06 PM

    Here is a new patch that adds both the "always_yield" feature and an "attributes" option for root element that I mentioned above.

  • abriening
    abriening commented at 1:32 PM

    I am building this result by hand now, with an instance of xml_builder ( copy/pasted the to_xml method body ). But passing in the builder still won't yield it b...

  • abriening
    abriening commented at 4:23 AM

    I can't speak for David but I am implementing a REST XML API, and would like to add some meta-data to each returned array:

    <?xml version="1.0" encoding="UTF-8"...
Sunday, August 02 2009
2241 Empty Array to_xml Should Still Yield Builder was updated in Ruby on Rails
  • abriening
    • Tag changed from active_support core_ext, patch, tested to active_support core_ext, array, patch, tested, to_xml
    by abriening at 5:27 PM

    Here is the same thing but as an optional parameter. The default is still to ignore the block if empty.

Sunday, February 22 2009
2010 Array#to_sentence raises with missing translations was updated in Ruby on Rails
  • abriening
    • Tag changed from activesupport, array, duration, i18n, to_sentence to activesupport, array, duration, i18n, patch, to_sentence
    by abriening at 6:36 PM

    Adding a new patch.

    Includes changes from commit ff1afb, #1847.

    Note this patch assumes that you are either using the old :connector and :skip_last_comma option...

  • abriening
    abriening commented at 5:58 PM

    Just wanted to clarify, this does not raise with the I8n.default_exception_handler but makes ugly logs and error messages.

    
    irb(main):002:0> require 'activesu...
Wednesday, February 18 2009
2010 Array#to_sentence raises with missing translations was created in Ruby on Rails
  • abriening
    abriening created the ticket at 8:37 PM

    The Array#to_sentence raises errors if a locale other than :en is used and is missing the default values. ( Think custom I18n.backend that is user editable ).

    A...