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.

Cyrille's latest activity

Saturday, September 11 2010
5386 AR::Base#unscoped inconsistency was updated in Ruby on Rails
  • Cyrille
    Cyrille commented at 9:31 AM

    @Neeraj

    In rails 2 I think you were allowed to do stuff like

       with_exclusive_scope do
        named_scope :most_recent ...
        named_scope :cheapest ...
       end
    

    ...

Thursday, September 02 2010
5386 AR::Base#unscoped inconsistency was updated in Ruby on Rails
  • Cyrille
    Cyrille commented at 12:14 PM

    Moreover:

    class Organization < ActiveRecord::Base
    
      default_scope where("organizations.state = 'active'").order("organizations.qs DESC, organizations.title AS...
Tuesday, August 24 2010
5371 layout with :only/:except options makes other actions render without layouts was updated in Ruby on Rails
  • Cyrille
    Cyrille commented at 8:26 AM

    See also #3619 that seems to be related

  • Cyrille
    Cyrille commented at 8:23 AM
    render :layout => 'other_layout'
    

    is definitely working however I personally think layout is better in controller class declaration

    layout 'other_layout', :on...
Tuesday, June 15 2010
4807 ERROR Encoding::UndefinedConversionError: "\xC3" from ASCII-8BIT to UTF-8 was updated in Ruby on Rails
Thursday, January 07 2010
3521 [PATCH] Add conditional counter cache was updated in Ruby on Rails
  • Cyrille
    Cyrille commented at 9:47 AM

    +1

    Imagine if your models have state machine most of the time you want to count only 'active' elements.
    Very common e-commerce case : product and category. In f...

Tuesday, December 15 2009
3525 Nested attributes are saved twice was updated in Ruby on Rails
  • Cyrille
    Cyrille commented at 5:30 PM

    I confirm the exact same problem on 2.3.5 however the exact same code 2.3.4 works