Hello, I try to include an action to my main page like this: <code><%= render_component(:controller => ''patient'', :action => ''list'', :layout => nil) %></code> But the action is rendered in the default layout. Why is <code>:layout => nil</code> ignored? -- Posted via http://www.ruby-forum.com/.
try doing :layout => false Henning wrote:>Hello, > >I try to include an action to my main page like this: > ><code><%= render_component(:controller => ''patient'', :action => ''list'', >:layout => nil) %></code> > >But the action is rendered in the default layout. Why is <code>:layout >=> nil</code> ignored? > > >
> try doing > :layout => falseIt does not help.. any other ideas? -- Posted via http://www.ruby-forum.com/.
> >I try to include an action to my main page like this: > > > ><code><%= render_component(:controller => ''patient'', :action => ''list'', > >:layout => nil) %></code> > > > >But the action is rendered in the default layout. Why is <code>:layout > >=> nil</code> 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