# Where to put pages not baked by controllers

**URL:** <https://www.ruby-forum.com/t/where-to-put-pages-not-baked-by-controllers/111080>\
**Category:** Rails\
**Created:** [August 2, 2007, 12:52pm UTC](https://www.ruby-forum.com/t/where-to-put-pages-not-baked-by-controllers/111080 "2007-08-02T12:52:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cesidio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/65b543/32.png) [@cesidio](https://www.ruby-forum.com/u/cesidio)\
**Post date:** [August 2, 2007, 12:52pm UTC](https://www.ruby-forum.com/t/where-to-put-pages-not-baked-by-controllers/111080/1 "2007-08-02T12:52:21Z")

</div>

I am developing an application that supports internationalization. I  
have public pages (in public folder) that are not backed by any  
controller, but I need them to be rendered in the correct locale and to  
apply a layout to them. Do you have any workaround to it? Where should I  
place this pages in order to be executed as .rhtml but without going  
through any controller?  
Thanks

---

<div class="post-metadata">

**Author:** ![cesidio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/65b543/32.png) [@cesidio](https://www.ruby-forum.com/u/cesidio)\
**Post date:** [August 3, 2007, 4:21am UTC](https://www.ruby-forum.com/t/where-to-put-pages-not-baked-by-controllers/111080/2 "2007-08-03T04:21:50Z")

</div>

how about letting apache serve them & use mod\_rewrite (or whatever is  
the appropriate apache handler for internationalization)

On Aug 2, 6:52 am, Cesidio Di landa [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![cesidio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/65b543/32.png) [@cesidio](https://www.ruby-forum.com/u/cesidio)\
**Post date:** [August 2, 2007, 12:59pm UTC](https://www.ruby-forum.com/t/where-to-put-pages-not-baked-by-controllers/111080/3 "2007-08-02T12:59:44Z")

</div>

I don’t know of a way to have controller-less pages in Rails but you can  
use  
something like Merb or Camping alongside Rails to do Erb processing.

Hope it helps,

AEM

On 8/2/07, Cesidio Di landa [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> >

–  
Adrian Esteban Madrid

---

<div class="post-metadata">

**Author:** ![cesidio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/65b543/32.png) [@cesidio](https://www.ruby-forum.com/u/cesidio)\
**Post date:** [August 3, 2007, 2:49pm UTC](https://www.ruby-forum.com/t/where-to-put-pages-not-baked-by-controllers/111080/4 "2007-08-03T14:49:03Z")

</div>

You can just add a controller to server such pages. You don’t need to  
add actions for each pages. Just put those templates inside  
controllers’s view directory and rails will serve them as rhtml even  
if you don’t have an action defined.

It’s a nice idea to have a controller as it’ll let you do caching  
easily.

On 8/2/07, Cesidio Di landa [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> >

–  
Cheers!

- Pratik  
[http://m.onkey.org](http://m.onkey.org)
