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
ignored?
=> 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
ignored?
=> nil
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
ignored?
=> nil
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs