I am building a site where only one section is dynamic the rest I want to serve statically. Is there a way to use erb in the public/ folder with static html pages? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Nathan Esquenazi
2008-Jan-25 02:11 UTC
Re: A way to have partials outside of the app/ directory?
You can just create the views and partials normally in the folder. If you want to serve pages statically (or even just pieces of pages statically) you should really just perform caching. You should perform some level of caching on all your pages anyways. If you use page caching then you will effectively be serving static pages anyways but this is just the proper way to do it. http://www.railsenvy.com/2007/2/28/rails-caching-tutorial -- 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 -~----------~----~----~----~------~----~------~--~---