# Disabled layouts?

**URL:** <https://www.ruby-forum.com/t/disabled-layouts/114697>\
**Category:** Rails\
**Created:** [September 17, 2007, 1:24pm UTC](https://www.ruby-forum.com/t/disabled-layouts/114697 "2007-09-17T13:24:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pgega](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ba9def/32.png) [@pgega](https://www.ruby-forum.com/u/pgega)\
**Post date:** [September 17, 2007, 1:24pm UTC](https://www.ruby-forum.com/t/disabled-layouts/114697/1 "2007-09-17T13:24:20Z")

</div>

Hello,

Using layouts in very simple, but my applications seems to do not care  
about layouts at all.

If I put the code…

class IndexController \< AppplicationController  
layout ‘mylayout’

def index  
end

def list  
end  
end

…each of actions will try to open specific layout (corresponding to  
name) despite of that I specified a layout in top.  
I saw that there was a bug in rails , but It was long ago.

What might be wrong ?

P

---

<div class="post-metadata">

**Author:** ![pgega](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ba9def/32.png) [@pgega](https://www.ruby-forum.com/u/pgega)\
**Post date:** [September 25, 2007, 11:04pm UTC](https://www.ruby-forum.com/t/disabled-layouts/114697/2 "2007-09-25T23:04:21Z")

</div>

OK , I found something,

I can use layouts, but I must have the separata layout for each action  
in each controller’s view foldes. This rhtml file can be blank , but  
must have the name with action’s name.

Isn’t it strange to use global layout ,but still must create blank  
default action’s layouts ? Is the any way to override this?
