Render_component ignores :layout => nil


#1

Hello,

I try to include an action to my main page like this:

<%= render_component(:controller => ‘patient’, :action => ‘list’,
:layout => nil) %>

But the action is rendered in the default layout. Why is :layout
=> nil
ignored?


#2

try doing
:layout => false


#3

try doing
:layout => false

It does not help… any other ideas?


#4

I try to include an action to my main page like this:

<%= render_component(:controller => ‘patient’, :action => ‘list’,
:layout => nil) %>

But the action is rendered in the default layout. Why is :layout
=> nil
ignored?

The component is doing its own render call. You will have to do
something like:

<%= render_component :controller => ‘patient’, :action => ‘list’,
:params => { :layout => false } %>

Then params[:layout] should be false.


rick
http://techno-weenie.net