Render_component ignores :layout => nil

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?

try doing
:layout => false

try doing
:layout => false

It does not help… any other ideas?

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