# Disable layouts for specific .rhtmls

**URL:** <https://www.ruby-forum.com/t/disable-layouts-for-specific-rhtmls/128657>\
**Category:** Rails\
**Created:** [February 9, 2008, 11:52pm UTC](https://www.ruby-forum.com/t/disable-layouts-for-specific-rhtmls/128657 "2008-02-09T23:52:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![isea](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/dfb087/32.png) [@isea](https://www.ruby-forum.com/u/isea)\
**Post date:** [February 9, 2008, 11:52pm UTC](https://www.ruby-forum.com/t/disable-layouts-for-specific-rhtmls/128657/1 "2008-02-09T23:52:45Z")

</div>

Hello,

Is it possible to disable the layout for a specific file? I have a  
file\_upload.rhtml that gets it’s layout from the account.rhtml layout.  
Inside file\_upload.rhtml there is an iframe (upload.rhtml) that handles  
the actual uploading of the file. upload.rhtml is getting the same  
layout as it’s parent (file\_upload.rhtml) so as you can imagine this is  
causing an undesired affect.

So the question again: Is there a way to disable the layout for this  
specific file (upload.rhtml)?

Thanks for any help!

---

<div class="post-metadata">

**Author:** ![isea](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/dfb087/32.png) [@isea](https://www.ruby-forum.com/u/isea)\
**Post date:** [February 10, 2008, 1:02am UTC](https://www.ruby-forum.com/t/disable-layouts-for-specific-rhtmls/128657/2 "2008-02-10T01:02:27Z")

</div>

Coming back to post the solution I found.

```auto
layout 'account', :except => :login
```

added to my account controller fixed it.
