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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > > 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 > -- > Posted via http://www.ruby-forum.com/. > > > >-- Adrian Esteban Madrid --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> 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 > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > 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 > -- > Posted via http://www.ruby-forum.com/. > > > >-- Cheers! - Pratik http://m.onkey.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---