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.

Erik Andrejko's latest activity

Thursday, July 16 2009
2917 "Cached fragment hit" written to log even if fragment is not cached was created in Ruby on Rails
  • Erik Andrejko
    Erik Andrejko created the ticket at 5:48 PM

    When using the <% cache(...) do %> ... <% end %> idiom within a view a "Cached fragment hit" line will be written to the log even in the case that the fragment ...

Friday, July 03 2009
2836 ActiveSupport JSON decode fails on "\\" at end of string was updated in Ruby on Rails
  • Erik Andrejko
    Erik Andrejko commented at 1:06 AM

    That was a typo. The JSON string, as is in the test, should be:

    {"a" : "1"}

    I believe that the ActiveSupport JSON parser will fail for any value which ends in "...

Thursday, June 25 2009
2836 ActiveSupport JSON decode fails on "\\" at end of string was created in Ruby on Rails
  • Erik Andrejko
    Erik Andrejko created the ticket at 3:42 PM

    The following JSON string is not corrected decoded by ActiveSupport::JSON.decode:

    {"a","1\"}

    This string is correctly parsed by the json gem. A patch with a fai...

Sunday, June 07 2009
2253 named_scope and nested order clauses was updated in Ruby on Rails
  • Erik Andrejko
    Erik Andrejko commented at 12:23 AM

    A patch that includes tests for the desired behavior is attached.

Monday, March 16 2009
2253 named_scope and nested order clauses was created in Ruby on Rails
  • Erik Andrejko
    Erik Andrejko created the ticket at 1:35 PM

    named_scope currently has some unexpected behavior when nesting :order clauses. This problem also occurs in the underlying with_scope implementation.

    This test ...

Sunday, October 26 2008
805 The current_page? method doesn't work correctly was updated in Ruby on Rails
  • Erik Andrejko
    Erik Andrejko commented at 4:51 PM

    Here is another patch that fixes current_page? to ignore extra parameters unless they are explicitly specified in the options argument.

Thursday, August 28 2008
924 render partial :object => nil with instance variable was updated in Ruby on Rails
  • Erik Andrejko
    Erik Andrejko commented at 7:51 PM

    Thanks for the fix. I was able to avoid this issue by restructuring my application.

    Did you look at the attached patch? It is not that difficult to allow exp...

  • Erik Andrejko
    Erik Andrejko created the ticket at 2:51 PM

    The following does not work as expected.

    Controller:

    
    @profile = Profile.new
    

    View:

    
    render :partial => 'profile', :object => nil
    

    Inside the partial 'profil...