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.

ximus's latest activity

Wednesday, May 26 2010
1458 Namespaced resources fail in production when controllers are not namespaced was updated in Ruby on Rails
  • ximus
    ximus commented at 1:26 PM

    Some behavior under rails 3 beta3.

Wednesday, April 28 2010
4487 ActiveModel::Lint variable type of #to_key's output was updated in Ruby on Rails
  • ximus
    ximus commented at 1:16 PM

    I mentioned that join is a instance method in String, obviously not, I had a long day. It expects an Array?

Tuesday, April 27 2010
4487 ActiveModel::Lint variable type of #to_key's output was updated in Ruby on Rails
  • ximus
    • Tag changed from activemodel lint actioncontroller to actioncontroller, activemodel, lint
    by ximus at 3:45 PM
  • ximus
    ximus created the ticket at 3:43 PM

    Hi,

    The ActiveModel Lint tests do not specify whether a comliant model needs to produce a String or a Fixnum when the #to_key compliance method is called.

    Howev...

Sunday, April 25 2010
4468 Action caching (blocker): undefined local variable or method `cache' was updated in Ruby on Rails
  • ximus
    ximus commented at 3:49 PM

    Thanks Neeraj.

  • ximus
    ximus commented at 11:50 AM

    I overlooked something, it happens when you specify :layout => false

    AnyController < ApplicationController
      caches_action :any_action, :layout => false
      # .....
Saturday, April 24 2010
4468 Action caching (blocker): undefined local variable or method `cache' was updated in Ruby on Rails
  • ximus
    ximus commented at 2:36 PM

    Now that I think of it, you can trigger this as so:

    AnyController < ApplicationController
      caches_action :any_action 
      # ... 
    end
    

    with config.action_control...

  • ximus
    ximus commented at 2:33 PM

    Now that I think of it, you can trigger this as so:
    @@@ruby AnyController < ApplicationController
    caches_action :any_action # ... end

    
    
  • ximus
    ximus commented at 1:58 PM

    Rails versions concerned are version 3.beta3 and current master branch

  • ximus
    ximus created the ticket at 1:56 PM

    There is a bug here:

    body = controller.render_to_string(:text => cache, :layout => true) unless @cache_layout
    

    (Line 136 of action_controller/caching/actions.r...