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.

Ryan Bates's latest activity

Friday, August 22 2008
830 Add :spacer option to render was updated in Ruby on Rails
  • Ryan Bates
    Ryan Bates commented at 1:02 AM

    I added ticket #881 which does some refactoring to ActionView::Partials. Then it will be easier for plugins to override render_partial_collection and support mo...

881 Refactoring ActionView::Partials was created in Ruby on Rails
  • Ryan Bates
    Ryan Bates created the ticket at 12:54 AM

    I saw some potential refactorings for ActionView::Partials to remove some duplication and clean things up. Attached is a patch.

    Here's an overview of what I di...

Thursday, August 21 2008
830 Add :spacer option to render was updated in Ruby on Rails
  • Ryan Bates
    Ryan Bates commented at 9:02 PM

    The better_partials plugin is just a wrapper around "render", so it faces the same problem. There's no way to add a spacer as a string without re-implementing t...

  • Ryan Bates
    Ryan Bates commented at 7:03 PM

    I agree many people don't use spacer_template, but I would certainly use this :spacer option more. I need this behavior in almost every project but find other w...

Tuesday, August 19 2008
633 FormTagHelper#submit_tag with :disable_with option doesn't submit the button'... was updated in Ruby on Rails
  • Ryan Bates
    Ryan Bates commented at 12:26 AM

    +1, I've run into this problem before too.

    But does this patch handle the case where a different button is pressed after the original onsubmit failed? Maybe ad...

Monday, August 18 2008
853 Fix render :partial to not attempt to render collections that are nil was updated in Ruby on Rails
  • Ryan Bates
    Ryan Bates commented at 9:41 PM

    This is also included in my patch for ticket #791.

785 Caching models fails in development was updated in Ruby on Rails
  • Ryan Bates
    Ryan Bates commented at 2:56 AM

    jshumate, do you have an example app or piece of code that replicates your problem? I think that would help us debug it.

Sunday, August 17 2008
849 dependent => :delete_all was updated in Ruby on Rails
  • Ryan Bates
    Ryan Bates commented at 11:11 PM

    In Ruby, a method called at the class level is called directly on the class.

    
    Item.delete_all
    
    # is the same as
    
    class Item
      delete_all
    end
    

    I do see how it's...

847 Pass block args for render :layout was updated in Ruby on Rails
  • Ryan Bates
    Ryan Bates commented at 5:29 AM

    Here's an updated patch with the underscore prefix. I'm not sure what's involved in moving the execute method over to renderable, so I'll leave that to you. :)

Saturday, August 16 2008
847 Pass block args for render :layout was updated in Ruby on Rails
  • Ryan Bates
    Ryan Bates commented at 9:15 PM

    Here's an updated patch with docs.