Displaying 1 result from an estimated 1 matches for "rails_use_layout_with_render_vari".
2012 Jul 26
2
Using the :layout option when calling render @variable
Hey everybody,
I wanted to use the :layout option when calling render @variable (where
@variable is some ActiveRecord class instance with a corresponding
variables/_variable.html.erb partial view), but as far as I know, Rails
doesn''t support this.
Here''s a quick patch that allows to use the :layout function:
In partial_renderer.rb, add the following elsif block:
if