search for: user_full_path

Displaying 1 result from an estimated 1 matches for "user_full_path".

Did you mean: use_full_path
2007 Aug 11
0
nested layouts
...ows def inside_layout(layout, &block) layout = layout.include?(''/'') ? layout : "layouts/#{layout}" @template.instance_variable_set(''@content_for_layout'', capture (&block)) concat( @template.render( :file => layout, :user_full_path => true ), block.binding ) end used like this: views/layouts/bar.html.erb: <% inside_layout ''foo'' do -%> ...stuff... <% end %> This basically works in my view spec although it brings in all the nested (outer) layouts Can you suggest a way t...