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.

Niels Ganser's latest activity

Friday, January 23 2009
1792 flash.use should return values which it marked as (un)used was updated in Ruby on Rails
  • Niels Ganser
    Niels Ganser commented at 9:25 PM

    Here's an alternative, i.e. more extensive, test:

    
      def test_keep_and_discard_return_values
        flash = ActionController::Flash::FlashHash.new
        flash.up...
  • Niels Ganser
    Niels Ganser created the ticket at 8:18 PM

    Motivation

    I found myself repeating

    
    flash_content = flash[:whatever]
    # ... 
    flash.discard(:whatever)
    

    in some of my applications.

    One good example would b...

Thursday, January 22 2009
745 Form label should use I18n was updated in Ruby on Rails
  • Niels Ganser
    Niels Ganser commented at 2:25 AM

    If we know for sure that other languages have other "titlecasing" rules, I would suggest putting the corresponding logic right into the titleize method and stor...

Wednesday, January 21 2009
745 Form label should use I18n was updated in Ruby on Rails
  • Niels Ganser
    Niels Ganser commented at 4:04 PM

    Additional to Iains linked patch, I would also suggest running titleize on the string returnd by I18n.

    The reasoning behind that being that in your translation ...

Friday, January 16 2009
1546 InstanceTag#to_label_tag should use human_attribute_name was updated in Ruby on Rails