Shimon Young
Not a member
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 commented at 11:42 AMrelated 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 commented at 9:59 AMActually, make that
def render identifier = ((@template = find_template) ? @template.identifier : @path) if @collection ActiveSupport::Notifications.i... -
- Tag set to layout, partial
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 commented at 11:08 AMIsn'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 commented at 11:26 AMJust hit exact same bug in Rails 3.0.0
Layout for parent partial is ignored if the partial contains a nested partial.