Where to put pages not baked by controllers


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?


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


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

Hope it helps,


On 8/2/07, Cesidio Di landa removed_email_address@domain.invalid wrote:

Posted via http://www.ruby-forum.com/.

Adrian Esteban Madrid


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

On 8/2/07, Cesidio Di landa removed_email_address@domain.invalid wrote: