# Theme Support for rails?

**URL:** <https://www.ruby-forum.com/t/theme-support-for-rails/161935>\
**Category:** Rails\
**Created:** [March 3, 2009, 11:58pm UTC](https://www.ruby-forum.com/t/theme-support-for-rails/161935 "2009-03-03T23:58:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 3, 2009, 11:58pm UTC](https://www.ruby-forum.com/t/theme-support-for-rails/161935/1 "2009-03-03T23:58:56Z")

</div>

Hey all,

I have a problem currently where I’m trying to enable “themes” for  
rails, in  
that views and layouts can be loaded from different locations, depending  
on  
the theme selected. Now, prefacing that I have tried every single  
variation  
of theme\_support for Rails 2.1.0, all to no avail - it loads the views  
fine,  
but NEVER the layouts, resulting in (as you can imagine) a page with no  
styles or head/body.etc.

I have even tried writing this myself by setting the view\_paths, but  
again -  
no layouts ever get loaded. Is there some fundamental piece of the  
puzzle  
I’m missing and if so - what is it!?

Thanks in advance,

Kirk

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 5, 2009, 10:47am UTC](https://www.ruby-forum.com/t/theme-support-for-rails/161935/2 "2009-03-05T10:47:58Z")

</div>

I was looking for this same functionality some time back, and I never  
found  
it. I looked at source from several other OS projects with theme  
capabilities, and it didn’t look like they solved it either, so I’m led  
to  
believe that layouts have to be in “app/views/layouts” (short of hacking  
the  
framework, of course) and nowhere else. Would love to hear that I’m  
wrong  
though.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [June 28, 2011, 11:43pm UTC](https://www.ruby-forum.com/t/theme-support-for-rails/161935/3 "2011-06-28T23:43:18Z")

</div>

Did such thing for my project, here’s sample of multiple themes support:

> **[Ruby Lang](https://ruby-lang.info)**
>
> Portal Berita

> **[Ruby Lang](https://ruby-lang.info)**
>
> Portal Berita

here’s some docs

> **[Ruby Lang](https://ruby-lang.info)**
>
> Portal Berita
