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.

Shimon Young's latest activity

Wednesday, October 06 2010
5658 Layout option in replace_html is ignored when partial renders a sub partial. was updated in Ruby on Rails
  • Shimon Young
    Shimon Young commented at 11:42 AM

    related to this, it seems the following fix is also needed in partials.rb if using a block with the layout

    def render_partial(object = @object)
      locals, view,...
  • Shimon Young
    Shimon Young commented at 9:59 AM

    Actually, make that

    def render
      identifier = ((@template = find_template) ? @template.identifier : @path)
    
      if @collection
        ActiveSupport::Notifications.i...
  • Shimon Young
    • Tag set to layout, partial
    by Shimon Young at 9:29 AM

    OK. I think the fix for this is changing
    actionpack-3.00\lib\action_view\render\partials.rb
    from:

      def render
        identifier = ((@template = find_template) ? ...
2279 render :layout with block and multiple yields renders twice was updated in Ruby on Rails
  • Shimon Young
    Shimon Young commented at 11:08 AM

    Isn't this because actionpack-3.0.0\lib\action_view\render\rendering.rb is:

    def render(options = {}, locals = {}, &block)
      case options
      when Hash
        if blo...
Tuesday, October 05 2010
5658 Layout option in replace_html is ignored when partial renders a sub partial. was updated in Ruby on Rails
  • Shimon Young
    Shimon Young commented at 11:26 AM

    Just hit exact same bug in Rails 3.0.0

    Layout for parent partial is ignored if the partial contains a nested partial.