Reputation: 324
I have a rails app which for front-end depends on bootstrap, jquery and lot of jquery plugins.
I want to have a promo page for it using a 3rd party template.It has its own dependencies(lot of them) and i don't want it to mess with rest of my app in any way.
Basically i want it to be as separate as possible from rest of my app.
Its totally static and doesn't need to interact with rest of app.
I don't require even erb for templating.
Also i want it to ave separate set of dependencies from rest of app.
How could i achieve this?
Upvotes: 0
Views: 54
Reputation: 176
You can create separate, static index.html
file in the public
folder of your application and make sure that root doesn't point to any controller action in config/routes.rb
file.
If you want to serve it on some specific path, other than root, just create those folders inside the public
folder and put your index.html
file there.
In that case, it won't mess with rest of your application and you'll benefit because your web server (i.e. nginx) can cache it and serve it much faster than dynamically generated pages.
Upvotes: 2