Hi Solidusers. I have a little question. Wich is t...
# support
b
Hi Solidusers. I have a little question. Wich is the best practice to render the static pages like contact page, legal info, shipment info...? Is it better to create an
StaticPagesController
or is better to add the views to the Rails public folder? Thanks in advance and sorry for my ignorance.
k
It depends if they are really static or you want to have some dynamic parts in them. For example, if you want to share the layout (including partials, rails helpers and assets) of the rest of the website, you probably won’t go with the public folder. Found this stack overflow answer, which is a great recap of the different approaches: https://stackoverflow.com/a/43399855/1460504 It refers to a plain Rails application, but I think it makes perfect sense for the Solidus context as well.
👍 2
b
Thanks,@kennyadsl, I'll read it.