Search code examples
routesruby-on-rails-4static-pages

rails - Adding static html pages without controller support


I have a problem.

Well, I've got an website with some sitemap and I want to keep active links to several html pages due to their high ranking in Google. Sample page has the address: http://domain.com/my_important_page.html - this is a static page in pure html written (requires no backend support).

Webpage has been re-written in RunyOnRails. How to make routes.rb to the above page(s) (ex. domain.com/my_important_page.html) was seen at the same web address as before?


Solution

  • You can just drop my_important_page.html in the public directory.