# Fallback layout mechanism

**URL:** <https://www.ruby-forum.com/t/fallback-layout-mechanism/131940>\
**Category:** Rails\
**Created:** [March 14, 2008, 4:32pm UTC](https://www.ruby-forum.com/t/fallback-layout-mechanism/131940 "2008-03-14T16:32:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![goodwill](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/ac8455/32.png) [@goodwill](https://www.ruby-forum.com/u/goodwill)\
**Post date:** [March 14, 2008, 4:32pm UTC](https://www.ruby-forum.com/t/fallback-layout-mechanism/131940/1 "2008-03-14T16:32:24Z")

</div>

I am doing a multi-lingual website which might have several layout  
pages (language dependent)available. I want to do a mechanism to fall  
back from one language to another default language if such layout file  
is missing. Any chance I can do an is\_exist check on the layout? With  
my current code I really want to just check it instead of catching a  
MissingTemplate error.

---

<div class="post-metadata">

**Author:** ![goodwill](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/ac8455/32.png) [@goodwill](https://www.ruby-forum.com/u/goodwill)\
**Post date:** [March 16, 2008, 12:08pm UTC](https://www.ruby-forum.com/t/fallback-layout-mechanism/131940/2 "2008-03-16T12:08:14Z")

</div>

as no one replied so far so I try to reply to keep this post up, hope  
somebody will know the answer
