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.

jolohaga's latest activity

Friday, April 16 2010
4419 current_page? in a partial template does not work. was created in Ruby on Rails
  • jolohaga
    jolohaga created the ticket at 9:23 PM

    The current controller and action passed into current_page? are not found when current_page? is invoked inside of a partial template.

Sunday, April 11 2010
3765 Missing shallow routes in new router DSL was updated in Ruby on Rails
  • jolohaga
    jolohaga commented at 7:37 PM

    The :only and :except hash arguments work fine. Shallow actions seem to me to be the equivalent of applying :only => [:index,:create,:new] to the nested resourc...

Saturday, April 10 2010
3765 Missing shallow routes in new router DSL was updated in Ruby on Rails
  • jolohaga
    jolohaga commented at 2:30 PM

    Sorry for the late suggestion, but it seems to me that shallow should be the default and :shallow => false should be required to override it. Assuming most peop...

Friday, February 26 2010
3765 Missing shallow routes in new router DSL was updated in Ruby on Rails
  • jolohaga
    jolohaga commented at 10:21 PM

    Other options are not being processed either, specifically :has_many and :has_one are not processed.

    This ticket should be renamed 'Router options ignored in ne...

Thursday, February 25 2010
3765 Missing shallow routes in new router DSL was updated in Ruby on Rails
  • jolohaga
    jolohaga commented at 3:59 PM

    The 2.3.x way doesn't work for me either. The argument :shallow => true is just ignored.

    Now that the new routing API is void of Hashes, this old syntax looks a...

Sunday, August 09 2009
2899 [PATCH] Rails 2.1.0 ActionView::Helpers::TextHelper#truncate was updated in Ruby on Rails
  • jolohaga
    jolohaga commented at 5:06 AM

    @Jeremy

    The documentation isn't consistent with this assumption. My botched (full of headers) comment above discusses this point. With better documentation ther...

Thursday, August 06 2009
2899 Rails 2.1.0 ActionView::Helpers::TextHelper#truncate was updated in Ruby on Rails
  • jolohaga
    jolohaga commented at 6:42 PM

    Sorry for the headers. They resulted from copying documentation lines which were preceded by "#". If I could fix it I would. I'll know better next time.

  • jolohaga
    jolohaga commented at 6:37 PM

    Unless I'm missing something, it seems to me that the documentation is murky. Cases in point:

    Truncates a given +text+ after a given :length if +text+ is longer...

  • jolohaga
    jolohaga commented at 5:34 AM

    I can confirm this bug.

    Not only is the algorithm producing unpredictable results, but it uses :omission in the calculation. I agree with Guilherme that this do...